Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qflickgesture_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 QFLICKGESTURE_P_H
5#define QFLICKGESTURE_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 "qevent.h"
20#include "qgesturerecognizer.h"
21#include "private/qgesture_p.h"
22#include "qscroller.h"
23#include "qscopedpointer.h"
24
25#ifndef QT_NO_GESTURES
26
28
30class QGraphicsItem;
31
32class Q_WIDGETS_EXPORT QFlickGesture : public QGesture
33{
35 Q_DECLARE_PRIVATE(QFlickGesture)
36
37public:
40
42};
43
45{
46 Q_DECLARE_PUBLIC(QFlickGesture)
47public:
49
52 Qt::MouseButton button; // NoButton == Touch
54};
55
57{
58public:
60
61 QGesture *create(QObject *target) override;
62 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
63 void reset(QGesture *state) override;
64
65private:
66 Qt::MouseButton button; // NoButton == Touch
67};
68
70
71#endif // QT_NO_GESTURES
72
73#endif // QFLICKGESTURE_P_H
\inmodule QtCore
Definition qcoreevent.h:45
QScroller * receiverScroller
QPointer< QObject > receiver
Qt::MouseButton button
QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override
The QFlickGesture class describes a flicking gesture made by the user.The QFlickGesture is more compl...
The QGestureRecognizer class provides the infrastructure for gesture recognition.\inmodule QtWidgets.
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
Definition qgesture.h:29
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
Definition qpointer.h:18
The QScroller class enables kinetic scrolling for any scrolling widget or graphics item.
Definition qscroller.h:26
QPushButton * button
[2]
else opt state
[0]
Combined button and popup list for selecting options.
MouseButton
Definition qnamespace.h:55
GLenum target
struct _cl_event * event
GLboolean reset
#define Q_OBJECT
view create()
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent