diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2012-10-23 14:36:59 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-25 14:10:04 +0200 |
commit | 50e7a5b7239f45c782f1814c185a1cdef31748d8 (patch) | |
tree | cd9320bb54dca10ff57de0f2937ba65fb50300af /src/widgets/styles/qstyleanimation_p.h | |
parent | d58161e749348a9e11e063b1bbb3dbbc0aa46c5e (diff) |
QStyleAnimation: writable duration & delay properties
These will be needed by upcoming QFadeStyleAnimation and QBlendStyleAnimation.
Change-Id: Ibc5092d5dbd834cb9b16353d3e83b95b04d9484b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/widgets/styles/qstyleanimation_p.h')
-rw-r--r-- | src/widgets/styles/qstyleanimation_p.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/widgets/styles/qstyleanimation_p.h b/src/widgets/styles/qstyleanimation_p.h index 577b1d7dd4..3188eebebc 100644 --- a/src/widgets/styles/qstyleanimation_p.h +++ b/src/widgets/styles/qstyleanimation_p.h @@ -66,9 +66,14 @@ public: QStyleAnimation(QObject *target); virtual ~QStyleAnimation(); - int duration() const; QObject *target() const; + int duration() const; + void setDuration(int duration); + + int delay() const; + void setDelay(int delay); + QTime startTime() const; void setStartTime(const QTime &time); @@ -79,6 +84,8 @@ protected: virtual void updateCurrentTime(int time); private: + int _delay; + int _duration; QTime _startTime; }; |