1
0
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:
Christian Muehlhaeuser
2012-01-23 06:03:00 +01:00
parent 5a719f39bd
commit ff9074421a

View File

@@ -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();
} }