1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

a little hack never hurt nobody

Skip calculating the sizehint from the dynamic widget layout, as it's slow.
This commit is contained in:
Leo Franchi
2011-01-30 10:33:16 -05:00
parent 824c407040
commit 69dd31a797
2 changed files with 8 additions and 0 deletions

View File

@@ -180,6 +180,13 @@ DynamicWidget::playlistInterface() const
return m_view->proxyModel();
}
QSize
DynamicWidget::sizeHint() const
{
// We want to take up as much room as the animated splitter containing us and the queue editor will allow. So we return a bogus huge sizehint
// to avoid having to calculate it which is slow
return QSize( 5000, 5000 );
}
void
DynamicWidget::generateOrStart()
{

View File

@@ -58,6 +58,7 @@ public:
PlaylistInterface* playlistInterface() const;
virtual QSize sizeHint() const;
public slots:
void onRevisionLoaded( const Tomahawk::DynamicPlaylistRevision& rev );