summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/input/qabstract3dinputhandler.h
diff options
context:
space:
mode:
authorKeränen Pasi <pasi.keranen@digia.com>2013-09-13 11:13:16 +0300
committerPasi Keränen <pasi.keranen@digia.com>2013-09-19 12:11:33 +0300
commit802681d854d93a50547585570da3bcf7b6c41636 (patch)
tree2818f239df688f6ad5b91b2ac9d638ffae34e24a /src/datavisualization/input/qabstract3dinputhandler.h
parent35a5a5302fdcf43bc571f51f03512e3df9d2c58c (diff)
Qdoc documentation for new scene and input classes.
Change-Id: I5d9680fcf2e49655c1b9bcdf961bbda02bf31968 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/input/qabstract3dinputhandler.h')
-rw-r--r--src/datavisualization/input/qabstract3dinputhandler.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/datavisualization/input/qabstract3dinputhandler.h b/src/datavisualization/input/qabstract3dinputhandler.h
index d19f626d..96d4de97 100644
--- a/src/datavisualization/input/qabstract3dinputhandler.h
+++ b/src/datavisualization/input/qabstract3dinputhandler.h
@@ -32,7 +32,7 @@ class QT_DATAVISUALIZATION_EXPORT QAbstract3DInputHandler : public QObject
Q_OBJECT
Q_PROPERTY(QtDataVisualization::QDataVis::InputState inputState READ inputState WRITE setInputState NOTIFY inputStateChanged)
Q_PROPERTY(QPoint inputPosition READ inputPosition WRITE setInputPosition NOTIFY positionChanged)
- Q_PROPERTY(Q3DScene *scene READ scene WRITE setScene)
+ Q_PROPERTY(Q3DScene *scene READ scene WRITE setScene NOTIFY sceneChanged)
public:
explicit QAbstract3DInputHandler(QObject *parent = 0);
@@ -47,28 +47,28 @@ public:
virtual void wheelEvent(QWheelEvent *event);
public:
- // Property get/set functions
-
// TODO: Check if the inputState needs to be visible outside of subclasses in the final architecture
QDataVis::InputState inputState();
void setInputState(QDataVis::InputState inputState);
- void setInputPosition(const QPoint &position);
+
QPoint inputPosition() const;
+ void setInputPosition(const QPoint &position);
Q3DScene *scene() const;
void setScene(Q3DScene *scene);
+signals:
+ void positionChanged(const QPoint &position);
+ void inputStateChanged(QDataVis::InputState state);
+ void selectionAtPoint(const QPoint &point);
+ void sceneChanged(const Q3DScene *scene);
+
protected:
void setPrevDistance(int distance);
int prevDistance() const;
void setPreviousInputPos(const QPoint &position);
QPoint previousInputPos() const;
-signals:
- void positionChanged(const QPoint &position);
- void inputStateChanged(QDataVis::InputState state);
- void selectionAtPoint(const QPoint &point);
-
private:
Q_DISABLE_COPY(QAbstract3DInputHandler)