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
inspecttool.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 INSPECTTOOL_H
5#define INSPECTTOOL_H
6
7#include <QtCore/QPointF>
8#include <QtCore/QPointer>
9#include <QtCore/QTimer>
10
12
13class QQuickWindow;
14class QQuickItem;
15class QMouseEvent;
16class QKeyEvent;
17class QTouchEvent;
18class QEnterEvent;
19
20namespace QmlJSDebugger {
21
22class GlobalInspector;
23class QQuickWindowInspector;
24class HoverHighlight;
25
26class InspectTool : public QObject
27{
29public:
31
32 void enterEvent(QEnterEvent *);
33 void leaveEvent(QEvent *);
41
42private:
43 void selectNextItem();
44 void selectItem();
45 void showItemName();
46
47 QQuickWindowInspector *inspector() const;
48 GlobalInspector *globalInspector() const;
49
50 bool m_tapEvent;
51 QPointer<QQuickItem> m_contentItem;
52 QPointF m_mousePosition;
53 ulong m_touchTimestamp;
54 QTimer m_nameDisplayTimer;
55
56 HoverHighlight *m_hoverHighlight;
57 QQuickItem *m_lastItem;
58 QQuickItem *m_lastClickedItem;
59};
60
61} // namespace QmlJSDebugger
62
64
65#endif // INSPECTTOOL_H
\inmodule QtGui
Definition qevent.h:165
\inmodule QtCore
Definition qcoreevent.h:45
The QKeyEvent class describes a key event.
Definition qevent.h:424
\inmodule QtGui
Definition qevent.h:196
\inmodule QtCore
Definition qobject.h:103
\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
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtCore
Definition qtimer.h:20
The QTouchEvent class contains parameters that describe a touch event.
Definition qevent.h:917
InspectTool(QQuickWindowInspector *inspector, QQuickWindow *view)
void hoverMoveEvent(QMouseEvent *)
void mouseDoubleClickEvent(QMouseEvent *)
void touchEvent(QTouchEvent *event)
void keyReleaseEvent(QKeyEvent *)
void mousePressEvent(QMouseEvent *)
void enterEvent(QEnterEvent *)
void mouseMoveEvent(QMouseEvent *)
void keyPressEvent(QKeyEvent *)
Definition inspecttool.h:38
Combined button and popup list for selecting options.
struct _cl_event * event
#define Q_OBJECT
unsigned long ulong
Definition qtypes.h:35
QQuickView * view
[0]