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 );
69 template <
typename Func1>
70 bool connectFrameChanged(
const typename QtPrivate::FunctionPointer<Func1>::Object *receiver, Func1 slot )
74 mMovie->setPaused(
false );
87 template <
typename Func1>
103 bool connectFrameChanged(
const QObject *receiver,
const char *method );
109 bool disconnectFrameChanged(
const QObject *receiver,
const char *method );
136 void onFrameChanged();
139 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...