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:
@@ -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()
|
||||
{
|
||||
|
@@ -58,6 +58,7 @@ public:
|
||||
|
||||
PlaylistInterface* playlistInterface() const;
|
||||
|
||||
virtual QSize sizeHint() const;
|
||||
public slots:
|
||||
void onRevisionLoaded( const Tomahawk::DynamicPlaylistRevision& rev );
|
||||
|
||||
|
Reference in New Issue
Block a user