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
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// Qt-Security score:significant reason:default
4
5#ifndef QFLICKGESTURE_P_H
6#define QFLICKGESTURE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of other Qt classes. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#include "qevent.h"
22#include "private/qgesture_p.h"
23#include "qscroller.h"
24
25#include <QtCore/qpointer.h>
26#include "qscopedpointer.h"
27
28#ifndef QT_NO_GESTURES
29
31
33class QGraphicsItem;
34
35class Q_WIDGETS_EXPORT QFlickGesture : public QGesture
36{
37 Q_OBJECT
38 Q_DECLARE_PRIVATE(QFlickGesture)
39
40public:
41 QFlickGesture(QObject *receiver, Qt::MouseButton button, QObject *parent = nullptr);
42 ~QFlickGesture();
43
44 friend class QFlickGestureRecognizer;
45};
46
48{
49 Q_DECLARE_PUBLIC(QFlickGesture)
50public:
52
55 Qt::MouseButton button; // NoButton == Touch
57};
58
60{
61public:
62 QFlickGestureRecognizer(Qt::MouseButton button);
63
64 QGesture *create(QObject *target) override;
66 void reset(QGesture *state) override;
67
68private:
69 Qt::MouseButton button; // NoButton == Touch
70};
71
72QT_END_NAMESPACE
73
74#endif // QT_NO_GESTURES
75
76#endif // QFLICKGESTURE_P_H
QScroller * receiverScroller
QPointer< QObject > receiver
Qt::MouseButton button
QGesture * create(QObject *target) override
\reimp
void reset(QGesture *state) override
\reimp
QFlickGestureRecognizer(Qt::MouseButton button)
The QFlickGesture class describes a flicking gesture made by the user.The QFlickGesture is more compl...