diff options
| author | Robert Knight <[email protected]> | 2007-04-16 15:38:03 +0000 |
|---|---|---|
| committer | Robert Knight <[email protected]> | 2007-04-16 15:38:03 +0000 |
| commit | 4c47e1ac23bef37a3083fbd32ca9d21bc766ec01 (patch) | |
| tree | 072c5158e7eb05bc8792009dbe99aa66f0ae3263 /src/pixmapviewer.h | |
| parent | 1fb838af11b19cb7b82aae49e0603c30f94704f0 (diff) | |
Add fade transition between file icon/preview changes in the sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=654581
Diffstat (limited to 'src/pixmapviewer.h')
| -rw-r--r-- | src/pixmapviewer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pixmapviewer.h b/src/pixmapviewer.h index a4c0dd7f5..daa4f269a 100644 --- a/src/pixmapviewer.h +++ b/src/pixmapviewer.h @@ -23,6 +23,7 @@ #include <QtGui/QWidget> #include <QtGui/QPixmap> +#include <QTimeLine> class QPaintEvent; @@ -47,8 +48,17 @@ public: protected: virtual void paintEvent(QPaintEvent* event); +private slots: + void beginTransition(); + void finishTransition(); + private: QPixmap m_pixmap; + QPixmap m_nextPixmap; + QPixmap m_pendingPixmap; + QTimeLine m_animation; + int m_animationStep; + }; |
