aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qqmldebug.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-06-08 16:43:23 +0200
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2015-06-10 09:52:09 +0000
commitf9cf4595edd22180989ec59e74c9f8b460c29680 (patch)
tree6f0e0ed33317d5350416ff76801754972441f54b /src/qml/debugger/qqmldebug.h
parent78bffbca60b12cccad4d79770a6933b8b2e6b5f8 (diff)
Make argument to QQmlDebuggingEnabler::startTcpServer an enum
The bool argument is less intuitive as you don't know if e.g. true means "Yes, run the QML" or "Yes, block the QML engine". Task-number: QTBUG-46565 Change-Id: I6d268e1354cebeb794b065e118bc0c353d7dd59a Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/debugger/qqmldebug.h')
-rw-r--r--src/qml/debugger/qqmldebug.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qml/debugger/qqmldebug.h b/src/qml/debugger/qqmldebug.h
index bb90c4f1b8..559c492dfd 100644
--- a/src/qml/debugger/qqmldebug.h
+++ b/src/qml/debugger/qqmldebug.h
@@ -42,8 +42,13 @@ QT_BEGIN_NAMESPACE
struct Q_QML_EXPORT QQmlDebuggingEnabler
{
+ enum StartMode {
+ DoNotWaitForClient,
+ WaitForClient
+ };
+
QQmlDebuggingEnabler(bool printWarning = true);
- static bool startTcpDebugServer(int port, bool block = false,
+ static bool startTcpDebugServer(int port, StartMode mode = DoNotWaitForClient,
const QString &hostName = QString());
};