From 4c47e1ac23bef37a3083fbd32ca9d21bc766ec01 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 16 Apr 2007 15:38:03 +0000 Subject: Add fade transition between file icon/preview changes in the sidebar. svn path=/trunk/KDE/kdebase/apps/; revision=654581 --- src/pixmapviewer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/pixmapviewer.h') 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 #include +#include 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; + }; -- cgit v1.3