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
globalinspector.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
4
5#ifndef GLOBALINSPECTOR_H
6#define GLOBALINSPECTOR_H
7
9
10#include <QtCore/QObject>
11#include <QtCore/QPointer>
12#include <QtCore/QHash>
13#include <QtQuick/QQuickItem>
14
16
17namespace QmlJSDebugger {
18
20
22{
24public:
27
28 void setSelectedItems(const QList<QQuickItem *> &items);
29 void showSelectedItemName(QQuickItem *item, const QPointF &point);
30
31 void addWindow(QQuickWindow *window);
32 void setParentWindow(QQuickWindow *window, QWindow *parentWindow);
33 void setQmlEngine(QQuickWindow *window, QQmlEngine *engine);
34 void removeWindow(QQuickWindow *window);
35 void processMessage(const QByteArray &message);
36
39
40private:
41 void sendResult(int requestId, bool success);
42 void sendCurrentObjects(const QList<QObject *> &objects);
43 void removeFromSelectedItems(QObject *object);
44 QString titleForItem(QQuickItem *item) const;
45 QString idStringForObject(QObject *obj) const;
46 bool createQmlObject(int requestId, const QString &qml, QObject *parent,
47 const QStringList &importList, const QString &filename);
48 bool destroyQmlObject(QObject *object, int requestId, int debugId);
49 bool syncSelectedItems(const QList<QQuickItem *> &items);
50
51 QList<QQuickItem *> m_selectedItems;
52 QHash<QQuickItem *, SelectionHighlight *> m_highlightItems;
53 QList<QQuickWindowInspector *> m_windowInspectors;
54 int m_eventId;
55};
56
57} // QmlJSDebugger
58
59QT_END_NAMESPACE
60
61#endif // GLOBALINSPECTOR_H
void processMessage(const QByteArray &message)
void setParentWindow(QQuickWindow *window, QWindow *parentWindow)
void removeWindow(QQuickWindow *window)
void setQmlEngine(QQuickWindow *window, QQmlEngine *engine)
void showSelectedItemName(QQuickItem *item, const QPointF &point)
void setSelectedItems(const QList< QQuickItem * > &items)
void addWindow(QQuickWindow *window)
const char RESPONSE[]
const char SHOW_APP_ON_TOP[]
const char MOVE_OBJECT[]
const char SET_ANIMATION_SPEED[]
const char SELECT[]
const char DISABLE[]
const char ENABLE[]
const char REQUEST[]
const char CREATE_OBJECT[]
const char EVENT[]
const char DESTROY_OBJECT[]
Combined button and popup list for selecting options.
static bool reparentQmlObject(QObject *object, QObject *newParent)