diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-22 13:38:25 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-22 13:40:21 (GMT) |
commit | e4954731369d9b339a79ec9fe737d70ef6dc4755 (patch) | |
tree | 8fd7174667b09ebac8460a39d5c1cd398b67b9e3 /src/gui/styles/qwindowsvistastyle_p.h | |
parent | 43b2248cc3765848ca3763c36b91ed7290fddfe0 (diff) | |
download | Qt-e4954731369d9b339a79ec9fe737d70ef6dc4755.zip Qt-e4954731369d9b339a79ec9fe737d70ef6dc4755.tar.gz Qt-e4954731369d9b339a79ec9fe737d70ef6dc4755.tar.bz2 |
In Vista style, renaming Animation, Transition and Pulse
There is a name clash, so we prefixed them with QWindowsVista
Reviewed-by: Benjamin Poulain
Diffstat (limited to 'src/gui/styles/qwindowsvistastyle_p.h')
-rw-r--r-- | src/gui/styles/qwindowsvistastyle_p.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/styles/qwindowsvistastyle_p.h b/src/gui/styles/qwindowsvistastyle_p.h index e9bbb77..04823c1 100644 --- a/src/gui/styles/qwindowsvistastyle_p.h +++ b/src/gui/styles/qwindowsvistastyle_p.h @@ -136,11 +136,11 @@ QT_BEGIN_NAMESPACE #define TDLG_SECONDARYPANEL 8 #endif -class Animation +class QWindowsVistaAnimation { public : - Animation() : _running(true) { } - virtual ~Animation() { } + QWindowsVistaAnimation() : _running(true) { } + virtual ~QWindowsVistaAnimation() { } QWidget * widget() const { return _widget; } bool running() const { return _running; } const QTime &startTime() const { return _startTime; } @@ -161,11 +161,11 @@ protected: // Handles state transition animations -class Transition : public Animation +class QWindowsVistaTransition : public QWindowsVistaAnimation { public : - Transition() : Animation() {} - virtual ~Transition() { } + QWindowsVistaTransition() : QWindowsVistaAnimation() {} + virtual ~QWindowsVistaTransition() { } void setDuration(int duration) { _duration = duration; } void setStartImage(const QImage &image) { _primaryImage = image; } void setEndImage(const QImage &image) { _secondaryImage = image; } @@ -176,11 +176,11 @@ public : // Handles pulse animations (default buttons) -class Pulse: public Animation +class QWindowsVistaPulse: public QWindowsVistaAnimation { public : - Pulse() : Animation() {} - virtual ~Pulse() { } + QWindowsVistaPulse() : QWindowsVistaAnimation() {} + virtual ~QWindowsVistaPulse() { } void setDuration(int duration) { _duration = duration; } void setPrimaryImage(const QImage &image) { _primaryImage = image; } void setAlternateImage(const QImage &image) { _secondaryImage = image; } @@ -199,15 +199,15 @@ public: ~QWindowsVistaStylePrivate(); static bool resolveSymbols(); static inline bool useVista(); - void startAnimation(Animation *); + void startAnimation(QWindowsVistaAnimation *); void stopAnimation(const QWidget *); - Animation* widgetAnimation(const QWidget *) const; + QWindowsVistaAnimation* widgetAnimation(const QWidget *) const; void timerEvent(); bool transitionsEnabled() const; QWidget *treeViewHelper(); private: - QList <Animation*> animations; + QList <QWindowsVistaAnimation*> animations; QBasicTimer animationTimer; QWidget *m_treeViewHelper; }; |