21 , mMovie( new QMovie( this ) )
27 mMovie->setCacheMode( QMovie::CacheAll );
28 connect( mMovie, &QMovie::frameChanged,
this, &QgsAnimatedIcon::onFrameChanged );
33 return mMovie->fileName();
48 if ( connect(
this, SIGNAL(
frameChanged() ), receiver, method ) )
50 mMovie->setPaused(
false );
59 return disconnect(
this, SIGNAL(
frameChanged() ), receiver, method );
64 return mMovie->currentPixmap().width();
69 return mMovie->currentPixmap().height();
71 void QgsAnimatedIcon::onFrameChanged()
74 mMovie->setPaused(
true );
76 mIcon = QIcon( mMovie->currentPixmap() );