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
qqmldebugpluginmanager_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
4
5#ifndef QQMLDEBUGPLUGINMANAGER_P_H
6#define QQMLDEBUGPLUGINMANAGER_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 <QDebug>
20#include <private/qtqmlglobal_p.h>
21#include <private/qfactoryloader_p.h>
22
24
25#if !QT_CONFIG(qml_debug)
26
27#define Q_QML_DEBUG_PLUGIN_LOADER(interfaceName)
28 static interfaceName *load##interfaceName(const QString &key)
29 {
30 qWarning() << "Qml Debugger: QtQml is not configured for debugging. Ignoring request for"
31 << "debug plugin" << key;
32 return 0;
33 }
34 Q_DECL_UNUSED static QList<QPluginParsedMetaData> metaDataFor##interfaceName()
35 {
36 return {};
37 }
38
39#else // QT_CONFIG(qml_debug)
40
41#define Q_QML_DEBUG_PLUGIN_LOADER(interfaceName)
42 Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, interfaceName##Loader,
43 (interfaceName##Factory_iid, QLatin1String("/qmltooling")))
44 static interfaceName *load##interfaceName(const QString &key)
45 {
46 return qLoadPlugin<interfaceName, interfaceName##Factory>(interfaceName##Loader(), key);
47 }
48 Q_DECL_UNUSED static QList<QPluginParsedMetaData> metaDataFor##interfaceName()
49 {
50 return interfaceName##Loader()->metaData();
51 }
52
53#endif // QT_CONFIG(qml_debug)
54
56#endif // QQMLDEBUGPLUGINMANAGER_P_H
\inmodule QtSql
Combined button and popup list for selecting options.
#define Q_QML_DEBUG_PLUGIN_LOADER(interfaceName)
QQmlDebugConnector * instance