summaryrefslogtreecommitdiffstats
path: root/ogreitem.h
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2012-04-27 16:54:38 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2012-04-27 16:58:31 +0200
commit8b6f88bc6199cfc48adfc94f189c2df7892e9c90 (patch)
tree7a319b017b6861b977a90db95ad7450ee4dfb73f /ogreitem.h
parent5766fe1d601417d7a7f6e73f7c716df47d6e6621 (diff)
Fixed to run with latest Qt5.HEADmaster
Diffstat (limited to 'ogreitem.h')
-rw-r--r--ogreitem.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ogreitem.h b/ogreitem.h
index 9800dea..3aa8490 100644
--- a/ogreitem.h
+++ b/ogreitem.h
@@ -37,28 +37,29 @@
#ifndef OGREITEM_H
#define OGREITEM_H
-#include <QSGItem>
+#include <QtQuick/QQuickItem>
#include <QtCore/QPropertyAnimation>
class CameraNodeObject;
-class OgreItem : public QSGItem
+class OgreItem : public QQuickItem
{
Q_OBJECT
Q_PROPERTY(QObject *camera READ camera)
public:
- OgreItem(QSGItem *parent = 0);
+ OgreItem(QQuickItem *parent = 0);
QObject *camera() const { return m_camera; }
protected:
virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *);
+ void timerEvent(QTimerEvent *);
+
private:
int m_timerID;
- QPropertyAnimation m_fakeAnim;
QObject *m_camera;
};