Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
24#include <QtCore/qpointer.h>
25#include "qscopedpointer.h"
26
27#ifndef QT_NO_GESTURES
28
30
32class QGraphicsItem;
33
34class Q_WIDGETS_EXPORT QFlickGesture : public QGesture
35{
37 Q_DECLARE_PRIVATE(QFlickGesture)
38
39public:
40 QFlickGesture(QObject *receiver, Qt::MouseButton button, QObject *parent = nullptr);
42
44};
45
47{
48 Q_DECLARE_PUBLIC(QFlickGesture)
49public:
51
52 QPointer<QObject> receiver;
54 Qt::MouseButton button; // NoButton == Touch
56};
57
59{
60public:
62
63 QGesture *create(QObject *target) override;
64 QGestureRecognizer::Result recognize(QGesture *state, QObject *watched, QEvent *event) override;
65 void reset(QGesture *state) override;
66
67private:
68 Qt::MouseButton button; // NoButton == Touch
69};
70
72
73#endif // QT_NO_GESTURES
74
75#endif // QFLICKGESTURE_P_H
\inmodule QtCore
Definition qcoreevent.h:45
QScroller * receiverScroller
QPointer< QObject > receiver
Qt::MouseButton button
QFlickGestureRecognizer(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:103
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:56
GLenum target
struct _cl_event * event
GLboolean reset
#define Q_OBJECT
view create()