Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgesture_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGESTURE_P_H
5#define QGESTURE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "qrect.h"
20#include "qpoint.h"
21#include "qgesture.h"
22#include "qbasictimer.h"
23#include "qelapsedtimer.h"
24#include "private/qobject_p.h"
25
26#ifndef QT_NO_GESTURES
27
29
48
50{
51 Q_DECLARE_PUBLIC(QPanGesture)
52
53public:
58
61 qreal verticalVelocity() const { return yVelocity; }
63
70 int pointCount; // ### fixme Qt 5.5: Add accessor to QPanGesture.
71};
72
103
135
137{
138 Q_DECLARE_PUBLIC(QTapGesture)
139
140public:
142 {
143 }
144
146};
147
149{
150 Q_DECLARE_PUBLIC(QTapAndHoldGesture)
151
152public:
156
159 static int Timeout;
160};
161
162QT_END_NAMESPACE
163
164#endif // QT_NO_GESTURES
165
166#endif // QGESTURE_P_H
QPointF hotSpot
Definition qgesture_p.h:43
Qt::GestureState state
Definition qgesture_p.h:42
QPointF sceneHotSpot
Definition qgesture_p.h:44
uint gestureCancelPolicy
Definition qgesture_p.h:46
void reset(QGesture *gesture) override
This function is called by the framework to reset a given gesture.
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
void timerEvent(QTimerEvent *ev) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
void reset(QGesture *gesture) override
This function is called by the framework to reset a given gesture.
QGesture * create(QObject *target) override
This function is called by Qt to create a new QGesture object for the given target (QWidget or QGraph...
QPointF startPosition[2]
Definition qgesture_p.h:101
\inmodule QtCore\reentrant
Definition qpoint.h:229
\inmodule QtCore\reentrant
Definition qpoint.h:28
QElapsedTimer time
Definition qgesture_p.h:133
void setVelocity(qreal value)
Definition qgesture_p.h:124
QPoint lastPositions[3]
Definition qgesture_p.h:130
qreal velocity() const
Definition qgesture_p.h:123
Combined button and popup list for selecting options.