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
qquickmousearea_p_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 QQUICKMOUSEAREA_P_P_H
6#define QQUICKMOUSEAREA_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 "qquickitem_p.h"
21
22#include <QtGui/qevent.h>
23#include <QtCore/qbasictimer.h>
24
26
27class QQuickMouseEvent;
28class QQuickMouseArea;
30{
31 Q_DECLARE_PUBLIC(QQuickMouseArea)
32
33public:
36 void init();
37
38 void saveEvent(QMouseEvent *event);
44 void propagate(QQuickMouseEvent* event, PropagateType);
45 bool propagateHelper(QQuickMouseEvent*, QQuickItem*,const QPointF &, PropagateType);
46
49 bool isClickConnected();
50#if QT_CONFIG(wheelevent)
51 bool isWheelConnected();
52#endif
53
54 bool enabled : 1;
55 bool hoverEnabled : 1;
57 bool hovered : 1;
58 bool longPress : 1;
59 bool moved : 1;
60 bool stealMouse : 1;
61 bool doubleClick : 1;
64 bool overThreshold : 1;
67#if QT_CONFIG(quick_draganddrop)
69#endif
78#if QT_CONFIG(cursor)
80#endif
81 QQuickMouseEvent quickMouseEvent;
82#if QT_CONFIG(wheelevent)
84#endif
86};
87
88QT_END_NAMESPACE
89
90#endif // QQUICKMOUSEAREA_P_P_H
void saveEvent(QMouseEvent *event)
bool propagateHelper(QQuickMouseEvent *, QQuickItem *, const QPointF &, PropagateType)
QQuickMouseEvent quickMouseEvent
void propagate(QQuickMouseEvent *event, PropagateType)
Qt::KeyboardModifiers lastModifiers
Qt::MouseEventFlags lastFlags
QQmlNullableValue< QPointF > lastScenePos