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"
21
#
include
"qgesturerecognizer.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
30
QT_BEGIN_NAMESPACE
31
32
class
QFlickGesturePrivate
;
33
class
QGraphicsItem;
34
35
class
Q_WIDGETS_EXPORT
QFlickGesture
:
public
QGesture
36
{
37
Q_OBJECT
38
Q_DECLARE_PRIVATE(QFlickGesture)
39
40
public
:
41
QFlickGesture(QObject *receiver, Qt::MouseButton button, QObject *parent =
nullptr
);
42
~QFlickGesture();
43
44
friend
class
QFlickGestureRecognizer;
45
};
46
47
class
QFlickGesturePrivate
:
public
QGesturePrivate
48
{
49
Q_DECLARE_PUBLIC(QFlickGesture)
50
public
:
51
QFlickGesturePrivate
();
52
53
QPointer
<QObject>
receiver
;
54
QScroller
*
receiverScroller
;
55
Qt
::
MouseButton
button
;
// NoButton == Touch
56
bool
macIgnoreWheel
;
57
};
58
59
class
QFlickGestureRecognizer
:
public
QGestureRecognizer
60
{
61
public
:
62
QFlickGestureRecognizer
(Qt::MouseButton button);
63
64
QGesture *
create
(QObject *target)
override
;
65
QGestureRecognizer
::
Result
recognize
(
QGesture
*
state
,
QObject
*
watched
,
QEvent
*
event
)
override
;
66
void
reset
(QGesture *state)
override
;
67
68
private
:
69
Qt::MouseButton button;
// NoButton == Touch
70
};
71
72
QT_END_NAMESPACE
73
74
#
endif
// QT_NO_GESTURES
75
76
#
endif
// QFLICKGESTURE_P_H
QFlickGesturePrivate
Definition
qflickgesture_p.h:48
QFlickGesturePrivate::receiverScroller
QScroller * receiverScroller
Definition
qflickgesture_p.h:54
QFlickGesturePrivate::receiver
QPointer< QObject > receiver
Definition
qflickgesture_p.h:53
QFlickGesturePrivate::macIgnoreWheel
bool macIgnoreWheel
Definition
qflickgesture_p.h:56
QFlickGesturePrivate::button
Qt::MouseButton button
Definition
qflickgesture_p.h:55
QFlickGestureRecognizer
Definition
qflickgesture_p.h:60
QFlickGestureRecognizer::create
QGesture * create(QObject *target) override
\reimp
Definition
qflickgesture.cpp:298
QFlickGestureRecognizer::reset
void reset(QGesture *state) override
\reimp
Definition
qflickgesture.cpp:626
QFlickGestureRecognizer::QFlickGestureRecognizer
QFlickGestureRecognizer(Qt::MouseButton button)
Definition
qflickgesture.cpp:291
QFlickGesture
The QFlickGesture class describes a flicking gesture made by the user.The QFlickGesture is more compl...
Definition
qflickgesture_p.h:36
QPointer
Definition
qpointer.h:19
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
widgets
util
qflickgesture_p.h
Generated on
for Qt by
1.14.0