aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qqmldebug.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-17 16:17:15 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-26 12:22:24 +0000
commit19d16b33ad2bf7312e2470f31f43fa1acf92f088 (patch)
tree53fa6abe329bf37e8a2f4f7a6eb872aaced74456 /src/qml/debugger/qqmldebug.h
parent5ce1b892a14a9940e4c8abbbed69bc011394c617 (diff)
Allow custom debug connectors
Expose a generic method for loading connector plugins in QQmlDebuggingEnabler and don't insist on the two known ones when actually loading them. This allows third-party connector plugins to be loaded, for example to pass QML trace events to a generic tracing library. Change-Id: I4f66dfabdbd0c3aff3676f7e2591e0a6c42f8f7f Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/debugger/qqmldebug.h')
-rw-r--r--src/qml/debugger/qqmldebug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/debugger/qqmldebug.h b/src/qml/debugger/qqmldebug.h
index eebebefe62..660b9e4d46 100644
--- a/src/qml/debugger/qqmldebug.h
+++ b/src/qml/debugger/qqmldebug.h
@@ -42,6 +42,7 @@
#include <QtQml/qtqmlglobal.h>
#include <QtCore/qstring.h>
+#include <QtCore/qvariant.h>
QT_BEGIN_NAMESPACE
@@ -65,6 +66,8 @@ struct Q_QML_EXPORT QQmlDebuggingEnabler
const QString &hostName = QString());
static bool connectToLocalDebugger(const QString &socketFileName,
StartMode mode = DoNotWaitForClient);
+ static bool startDebugConnector(const QString &pluginName,
+ const QVariantHash &configuration = QVariantHash());
};
// Execute code in constructor before first QQmlEngine is instantiated