16#ifndef QGSANIMATEDICON_H
17#define QGSANIMATEDICON_H
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;
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.
QgsAnimatedIcon(const QString &iconPath=QString(), QObject *parent=nullptr)
Create a new animated icon.
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...
void setIconPath(const QString &iconPath)
Path to a movie, e.g.
QIcon icon() const
Gets the icons representation in the current frame.
QString iconPath() const
Path to a movie, e.g.