summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qanimation/rectanimation.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qanimation/rectanimation.h')
-rw-r--r--tests/benchmarks/qanimation/rectanimation.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/benchmarks/qanimation/rectanimation.h b/tests/benchmarks/qanimation/rectanimation.h
new file mode 100644
index 0000000..c9770c4
--- /dev/null
+++ b/tests/benchmarks/qanimation/rectanimation.h
@@ -0,0 +1,30 @@
+#include <QtGui>
+
+#ifndef _RECTANIMATION_H__
+
+class DummyObject;
+
+//this class is even simpler than the dummy
+//and uses no QVariant at all
+class RectAnimation : public QAbstractAnimation
+{
+public:
+ RectAnimation(DummyObject *obj);
+
+ void setEndValue(const QRect &rect);
+ void setStartValue(const QRect &rect);
+
+ void setDuration(int d);
+ int duration() const;
+
+ virtual void updateCurrentTime(int msecs);
+ virtual void updateState(QAbstractAnimation::State state);
+
+private:
+ DummyObject *object;
+ QEasingCurve easing;
+ QRect start, end, current;
+ int dura;
+};
+
+#endif \ No newline at end of file