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
20QT_FORWARD_DECLARE_CLASS(QTimer)
21
22QT_BEGIN_NAMESPACE
23
24class QAbstract3DInputHandler;
25
26class QTouch3DInputHandlerPrivate : public Q3DInputHandlerPrivate
27{
28 Q_DECLARE_PUBLIC(QTouch3DInputHandler)
29
30public:
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
39public:
40 QTimer *m_holdTimer;
41 QPointF m_startHoldPos;
42 QPointF m_touchHoldPos;
43};
44
45QT_END_NAMESPACE
46
47#endif
48

source code of qtgraphs/src/graphs/input/qtouch3dinputhandler_p.h