Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQUICKMOUSEAREA_P_P_H
5#define QQUICKMOUSEAREA_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qquickitem_p.h"
19#include "qquickevents_p_p.h"
20
21#include <QtGui/qevent.h>
22#include <QtCore/qbasictimer.h>
23
25
27class QQuickMouseArea;
29{
30 Q_DECLARE_PUBLIC(QQuickMouseArea)
31
32public:
35 void init();
36
45
48 bool isClickConnected();
49#if QT_CONFIG(wheelevent)
50 bool isWheelConnected();
51#endif
52
53 bool enabled : 1;
54 bool hoverEnabled : 1;
56 bool hovered : 1;
57 bool longPress : 1;
58 bool moved : 1;
59 bool stealMouse : 1;
60 bool doubleClick : 1;
63 bool overThreshold : 1;
64 Qt::MouseButtons pressed;
66#if QT_CONFIG(quick_draganddrop)
67 QQuickDrag *drag;
68#endif
72 QQmlNullableValue<QPointF> lastScenePos;
74 Qt::MouseButtons lastButtons;
75 Qt::KeyboardModifiers lastModifiers;
77#if QT_CONFIG(cursor)
79#endif
81#if QT_CONFIG(wheelevent)
82 QQuickWheelEvent quickWheelEvent;
83#endif
84 Qt::MouseEventFlags lastFlags;
85};
86
88
89#endif // QQUICKMOUSEAREA_P_P_H
\inmodule QtCore
Definition qbasictimer.h:18
The QCursor class provides a mouse cursor with an arbitrary shape.
Definition qcursor.h:45
\inmodule QtGui
Definition qevent.h:196
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
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
\qmlproperty int QtQuick::KeyEvent::key
\qmlproperty real QtQuick::MouseEvent::x \qmlproperty real QtQuick::MouseEvent::y
QCursor cursor
Combined button and popup list for selecting options.
MouseButton
Definition qnamespace.h:56
struct _cl_event * event