summaryrefslogtreecommitdiffstats
path: root/examples/effects/blurpicker/blurpicker.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-10 11:05:36 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-10 12:18:58 (GMT)
commit6d4acbe94c71f7c0049cd08944855c23a716bee3 (patch)
tree7fefc3c55896e9f50175ba275f34e7ceb1542d21 /examples/effects/blurpicker/blurpicker.h
parentd845505fd57ad4b06499b5b125703e80bbae692a (diff)
downloadQt-6d4acbe94c71f7c0049cd08944855c23a716bee3.zip
Qt-6d4acbe94c71f7c0049cd08944855c23a716bee3.tar.gz
Qt-6d4acbe94c71f7c0049cd08944855c23a716bee3.tar.bz2
Make the new examples for effects use the Qt Animation Framework
Task-number: QTBUG-5640 Reviewed-by: Leo
Diffstat (limited to 'examples/effects/blurpicker/blurpicker.h')
-rw-r--r--examples/effects/blurpicker/blurpicker.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/effects/blurpicker/blurpicker.h b/examples/effects/blurpicker/blurpicker.h
index b460df4..b302db4 100644
--- a/examples/effects/blurpicker/blurpicker.h
+++ b/examples/effects/blurpicker/blurpicker.h
@@ -44,31 +44,31 @@
#include <QGraphicsEffect>
#include <QGraphicsView>
-#include <QTimeLine>
+#include <QPropertyAnimation>
#include "blureffect.h"
class BlurPicker: public QGraphicsView
{
Q_OBJECT
+ Q_PROPERTY(qreal index READ index WRITE setIndex);
public:
BlurPicker(QWidget *parent = 0);
+ qreal index() const;
+ void setIndex(qreal);
+
protected:
void keyPressEvent(QKeyEvent *event);
-private slots:
- void updateIconPositions();
-
private:
void setupScene();
private:
qreal m_index;
- QGraphicsScene m_scene;
QList<QGraphicsItem*> m_icons;
- QTimeLine m_timeLine;
+ QPropertyAnimation m_animation;
};
#endif // BLURPICKER_H