mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Fixed spinner size.
This commit is contained in:
@@ -42,10 +42,11 @@ LoadingSpinner::LoadingSpinner( QWidget* parent )
|
|||||||
connect( m_showHide, SIGNAL( finished() ), this, SLOT( hideFinished() ) );
|
connect( m_showHide, SIGNAL( finished() ), this, SLOT( hideFinished() ) );
|
||||||
|
|
||||||
m_anim = new QMovie( RESPATH "/images/loading-animation.gif" );
|
m_anim = new QMovie( RESPATH "/images/loading-animation.gif" );
|
||||||
|
m_anim->jumpToNextFrame();
|
||||||
|
|
||||||
connect( m_anim, SIGNAL( frameChanged( int ) ), this, SLOT( update() ) );
|
connect( m_anim, SIGNAL( frameChanged( int ) ), this, SLOT( update() ) );
|
||||||
|
|
||||||
resize( 31, 31 );
|
resize( m_anim->currentPixmap().size() );
|
||||||
setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
|
setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
@@ -96,7 +97,7 @@ LoadingSpinner::hideFinished()
|
|||||||
QSize
|
QSize
|
||||||
LoadingSpinner::sizeHint() const
|
LoadingSpinner::sizeHint() const
|
||||||
{
|
{
|
||||||
return QSize( 31, 31 );
|
return m_anim->currentPixmap().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user