16#ifndef QGSANIMATEDICON_H
17#define QGSANIMATEDICON_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>
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;
Animated icon is keeping an animation running if there are listeners connected to frameChanged.
bool disconnectFrameChanged(const typename QtPrivate::FunctionPointer< Func1 >::Object *receiver, Func1 slot)
Convenience function to disconnect the same style that the frame change connection was established.
void frameChanged()
Emitted when the icon changed.
bool connectFrameChanged(const typename QtPrivate::FunctionPointer< Func1 >::Object *receiver, Func1 slot)
Connect a slot that will be notified repeatedly whenever a frame changes and which should request the...