1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QTOUCH3DINPUTHANDLER_P_H |
5 | #define QTOUCH3DINPUTHANDLER_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the QtGraphs API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | |
17 | #include "q3dinputhandler_p.h" |
18 | #include "qtouch3dinputhandler.h" |
19 | |
20 | QT_FORWARD_DECLARE_CLASS(QTimer) |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QAbstract3DInputHandler; |
25 | |
26 | class QTouch3DInputHandlerPrivate : public Q3DInputHandlerPrivate |
27 | { |
28 | Q_DECLARE_PUBLIC(QTouch3DInputHandler) |
29 | |
30 | public: |
31 | QTouch3DInputHandlerPrivate(QTouch3DInputHandler *q); |
32 | ~QTouch3DInputHandlerPrivate(); |
33 | |
34 | void handlePinchZoom(float distance, const QPoint &pos); |
35 | void handleTapAndHold(); |
36 | void handleSelection(const QPointF &position); |
37 | void handleRotation(const QPointF &position); |
38 | |
39 | public: |
40 | QTimer *m_holdTimer; |
41 | QPointF m_startHoldPos; |
42 | QPointF m_touchHoldPos; |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif |
48 |