diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2012-04-27 16:54:38 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2012-04-27 16:58:31 +0200 |
commit | 8b6f88bc6199cfc48adfc94f189c2df7892e9c90 (patch) | |
tree | 7a319b017b6861b977a90db95ad7450ee4dfb73f /ogreitem.h | |
parent | 5766fe1d601417d7a7f6e73f7c716df47d6e6621 (diff) |
Diffstat (limited to 'ogreitem.h')
-rw-r--r-- | ogreitem.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; }; |