16 #ifndef QGSANIMATEDICON_H
17 #define QGSANIMATEDICON_H
22 #include <QMetaMethod>
24 #include "qgis_core.h"
38 QgsAnimatedIcon(
const QString &iconPath = QString(), QObject *parent =
nullptr );
43 QString iconPath()
const;
48 void setIconPath(
const QString &iconPath );
70 template <
typename Func1>
71 bool connectFrameChanged(
const typename QtPrivate::FunctionPointer<Func1>::Object *receiver, Func1 slot )
75 mMovie->setPaused(
false );
89 template <
typename Func1>
90 bool disconnectFrameChanged(
const typename QtPrivate::FunctionPointer<Func1>::Object *receiver, Func1 slot )
106 bool connectFrameChanged(
const QObject *receiver,
const char *method );
113 bool disconnectFrameChanged(
const QObject *receiver,
const char *method );
142 void onFrameChanged();
145 QMovie *mMovie =
nullptr;
149 #endif // QGSANIMATEDICON_H