diff options
Diffstat (limited to 'src/declarative/items/qsgspriteimage_p.h')
-rw-r--r-- | src/declarative/items/qsgspriteimage_p.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/declarative/items/qsgspriteimage_p.h b/src/declarative/items/qsgspriteimage_p.h index c2179cf121..84c5b50136 100644 --- a/src/declarative/items/qsgspriteimage_p.h +++ b/src/declarative/items/qsgspriteimage_p.h @@ -60,6 +60,7 @@ class QSGSpriteImage : public QSGItem { Q_OBJECT Q_PROPERTY(bool running READ running WRITE setRunning NOTIFY runningChanged) + Q_PROPERTY(bool interpolate READ interpolate WRITE setInterpolate NOTIFY interpolateChanged) //###try to share similar spriteEngines for less overhead? Q_PROPERTY(QDeclarativeListProperty<QSGSprite> sprites READ sprites) Q_CLASSINFO("DefaultProperty", "sprites") @@ -74,10 +75,15 @@ public: return m_running; } -signals: + bool interpolate() const + { + return m_interpolate; + } +signals: void runningChanged(bool arg); + void interpolateChanged(bool arg); public slots: @@ -89,6 +95,14 @@ void setRunning(bool arg) } } +void setInterpolate(bool arg) +{ + if (m_interpolate != arg) { + m_interpolate = arg; + emit interpolateChanged(arg); + } +} + private slots: void createEngine(); protected: @@ -105,6 +119,7 @@ private: int m_maxFrames; bool m_pleaseReset; bool m_running; + bool m_interpolate; }; QT_END_NAMESPACE |