mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +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();
|
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
|
void
|
||||||
DynamicWidget::generateOrStart()
|
DynamicWidget::generateOrStart()
|
||||||
{
|
{
|
||||||
|
@@ -58,6 +58,7 @@ public:
|
|||||||
|
|
||||||
PlaylistInterface* playlistInterface() const;
|
PlaylistInterface* playlistInterface() const;
|
||||||
|
|
||||||
|
virtual QSize sizeHint() const;
|
||||||
public slots:
|
public slots:
|
||||||
void onRevisionLoaded( const Tomahawk::DynamicPlaylistRevision& rev );
|
void onRevisionLoaded( const Tomahawk::DynamicPlaylistRevision& rev );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user