Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickpresshandler_p_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
QQUICKPRESSHANDLER_P_P_H
6
#
define
QQUICKPRESSHANDLER_P_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 purely as an
13
// implementation detail. 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
<
QtCore
/
qpoint
.
h
>
20
#
include
<
QtCore
/
qbasictimer
.
h
>
21
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
22
23
#
include
<
memory
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QQuickItem;
28
class
QMouseEvent;
29
class
QTimerEvent;
30
31
struct
QQuickPressHandler
32
{
33
void
mousePressEvent
(QMouseEvent *event);
34
void
mouseMoveEvent
(QMouseEvent *event);
35
void
mouseReleaseEvent
(QMouseEvent *event);
36
void
timerEvent
(QTimerEvent *event);
37
38
void
clearDelayedMouseEvent
();
39
bool
isActive
();
40
41
static
bool
isSignalConnected
(QQuickItem *item,
const
char
*signalName,
int
&signalIndex);
42
43
QQuickItem *
control
=
nullptr
;
44
QBasicTimer
timer
;
45
QPointF
pressPos
;
46
bool
longPress
=
false
;
47
int
pressAndHoldSignalIndex
= -1;
48
int
pressedSignalIndex
= -1;
49
int
releasedSignalIndex
= -1;
50
std
::
unique_ptr
<
QMouseEvent
>
delayedMousePressEvent
;
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
// QQUICKPRESSHANDLER_P_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QQuickPressHandler
Definition
qquickpresshandler_p_p.h:32
QQuickPressHandler::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition
qquickpresshandler.cpp:17
QQuickPressHandler::pressAndHoldSignalIndex
int pressAndHoldSignalIndex
Definition
qquickpresshandler_p_p.h:47
QQuickPressHandler::timerEvent
void timerEvent(QTimerEvent *event)
Definition
qquickpresshandler.cpp:65
QQuickPressHandler::isActive
bool isActive()
Definition
qquickpresshandler.cpp:93
QQuickPressHandler::clearDelayedMouseEvent
void clearDelayedMouseEvent()
Definition
qquickpresshandler.cpp:88
QQuickPressHandler::pressPos
QPointF pressPos
Definition
qquickpresshandler_p_p.h:45
QQuickPressHandler::control
QQuickItem * control
Definition
qquickpresshandler_p_p.h:43
QQuickPressHandler::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition
qquickpresshandler.cpp:41
QQuickPressHandler::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition
qquickpresshandler.cpp:47
QQuickPressHandler::delayedMousePressEvent
std::unique_ptr< QMouseEvent > delayedMousePressEvent
Definition
qquickpresshandler_p_p.h:50
QQuickPressHandler::timer
QBasicTimer timer
Definition
qquickpresshandler_p_p.h:44
QQuickPressHandler::longPress
bool longPress
Definition
qquickpresshandler_p_p.h:46
QQuickPressHandler::pressedSignalIndex
int pressedSignalIndex
Definition
qquickpresshandler_p_p.h:48
QQuickPressHandler::isSignalConnected
static bool isSignalConnected(QQuickItem *item, const char *signalName, int &signalIndex)
Definition
qquickpresshandler.cpp:98
QQuickPressHandler::releasedSignalIndex
int releasedSignalIndex
Definition
qquickpresshandler_p_p.h:49
qtdeclarative
src
quicktemplates
qquickpresshandler_p_p.h
Generated on
for Qt by
1.18.0