summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/input/qabstract3dinputhandler.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-17 16:18:27 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-18 12:53:13 +0200
commitd91e065526fe084374b206b6e7c9f0d628abb93d (patch)
treef4f9df5a31865e25ee97517c9b732eada1d2c8fe /src/datavisualization/input/qabstract3dinputhandler.h
parent7eb24d68115619d8d78e6a427d5c723e5ffc15a5 (diff)
Clean up public API and includes usage
Change-Id: I20ba0ffafa6bbe22d624a15fe3046ef2e33ab6d7 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/input/qabstract3dinputhandler.h')
-rw-r--r--src/datavisualization/input/qabstract3dinputhandler.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/datavisualization/input/qabstract3dinputhandler.h b/src/datavisualization/input/qabstract3dinputhandler.h
index 803517ed..75ec8c1b 100644
--- a/src/datavisualization/input/qabstract3dinputhandler.h
+++ b/src/datavisualization/input/qabstract3dinputhandler.h
@@ -19,8 +19,13 @@
#ifndef QABSTRACT3DINPUTHANDLER_H
#define QABSTRACT3DINPUTHANDLER_H
+#include <QtDataVisualization/qdatavisualizationglobal.h>
#include <QtDataVisualization/q3dscene.h>
-#include <QMouseEvent>
+#include <QtCore/QObject>
+#include <QtCore/QPoint>
+#include <QtGui/QWheelEvent>
+#include <QtGui/QMouseEvent>
+#include <QtGui/QTouchEvent>
QT_BEGIN_NAMESPACE_DATAVISUALIZATION
@@ -41,8 +46,9 @@ public:
InputViewOnSecondary
};
-public:
+protected:
explicit QAbstract3DInputHandler(QObject *parent = 0);
+public:
virtual ~QAbstract3DInputHandler();
// Input event listeners
@@ -53,7 +59,6 @@ public:
virtual void mouseMoveEvent(QMouseEvent *event, const QPoint &mousePos);
virtual void wheelEvent(QWheelEvent *event);
-public:
InputView inputView() const;
void setInputView(InputView inputView);
@@ -64,9 +69,9 @@ public:
void setScene(Q3DScene *scene);
signals:
- void positionChanged(QPoint position);
+ void positionChanged(const QPoint &position);
void inputViewChanged(InputView view);
- void sceneChanged(const Q3DScene *scene);
+ void sceneChanged(Q3DScene *scene);
protected:
void setPrevDistance(int distance);