summaryrefslogtreecommitdiff
path: root/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-10-19 16:48:32 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-25 03:52:54 +0200
commit53909f3cb2a02aca9f87b298b935845d9301d0d0 (patch)
tree66aa7d79f0843034a1c2049943aae2634ccb1915 /tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h
parentbc73af3ea55ed415d330f6d3a3aad6dd361f6417 (diff)
downloadqtlocation-53909f3cb2a02aca9f87b298b935845d9301d0d0.tar.gz
Adapt to QtDeclarative api renaming (QSG --> QQuick)
Change-Id: I9eb9829a11937504ca0b1cd93c4155ba2388f542 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h')
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h
index f3017903..125af66a 100644
--- a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h
+++ b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator_p.h
@@ -42,8 +42,8 @@
#ifndef QDECLARATIVEPINCHGENERATOR_H
#define QDECLARATIVEPINCHGENERATOR_H
-#include <QtDeclarative/QSGItem>
-#include <QSGCanvas>
+#include <QtDeclarative/QQuickItem>
+#include <QQuickCanvas>
#include <QtGui/QMouseEvent>
#include <QtGui/QTouchEvent>
#include <QtGui/QKeyEvent>
@@ -80,7 +80,7 @@ public:
int touchState_;
};
-class QDeclarativePinchGenerator : public QSGItem
+class QDeclarativePinchGenerator : public QQuickItem
{
Q_OBJECT
@@ -88,7 +88,7 @@ class QDeclarativePinchGenerator : public QSGItem
Q_PROPERTY(QString state READ state NOTIFY stateChanged)
Q_PROPERTY(int count READ count NOTIFY countChanged)
Q_PROPERTY(qreal replaySpeedFactor READ replaySpeedFactor WRITE setReplaySpeedFactor NOTIFY replaySpeedFactorChanged)
- Q_PROPERTY(QSGItem* target READ target WRITE setTarget NOTIFY targetChanged)
+ Q_PROPERTY(QQuickItem* target READ target WRITE setTarget NOTIFY targetChanged)
Q_PROPERTY(QList<QObject*> swipe1 READ swipe1 NOTIFY swipesChanged)
Q_PROPERTY(QList<QObject*> swipe2 READ swipe2 NOTIFY swipesChanged)
Q_INTERFACES(QDeclarativeParserStatus)
@@ -99,8 +99,8 @@ public:
QString state() const;
int count() const;
- QSGItem* target() const;
- void setTarget(QSGItem* target);
+ QQuickItem* target() const;
+ void setTarget(QQuickItem* target);
qreal replaySpeedFactor() const;
void setReplaySpeedFactor(qreal factor);
bool enabled() const;
@@ -140,7 +140,7 @@ public:
// from QDeclarativeParserStatus
virtual void componentComplete();
- // from QSGItem
+ // from QQuickItem
void itemChange(ItemChange change, const ItemChangeData & data);
protected:
@@ -159,9 +159,9 @@ private:
void generateSwipe(QPoint from, QPoint to, int duration, int samples);
private:
- QSGItem* target_;
+ QQuickItem* target_;
GeneratorState state_;
- QSGCanvas* canvas_;
+ QQuickCanvas* canvas_;
QList<Swipe*> swipes_;
Swipe* activeSwipe_;
QElapsedTimer swipeTimer_;