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
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
25QT_BEGIN_NAMESPACE
26
27class QQuickItem;
28class QMouseEvent;
29class QTimerEvent;
30
32{
33 void mousePressEvent(QMouseEvent *event);
34 void mouseMoveEvent(QMouseEvent *event);
35 void mouseReleaseEvent(QMouseEvent *event);
36 void timerEvent(QTimerEvent *event);
37
39 bool isActive();
40
41 static bool isSignalConnected(QQuickItem *item, const char *signalName, int &signalIndex);
42
43 QQuickItem *control = nullptr;
46 bool longPress = false;
51};
52
53QT_END_NAMESPACE
54
55#endif // QQUICKPRESSHANDLER_P_P_H
void mousePressEvent(QMouseEvent *event)
void timerEvent(QTimerEvent *event)
void mouseMoveEvent(QMouseEvent *event)
void mouseReleaseEvent(QMouseEvent *event)
std::unique_ptr< QMouseEvent > delayedMousePressEvent
static bool isSignalConnected(QQuickItem *item, const char *signalName, int &signalIndex)