summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorLasse Holmstedt <lasse.holmstedt@nokia.com>2010-09-17 08:13:51 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2010-09-17 13:51:18 (GMT)
commita9e5329168cd9113bf41293c05193d8b099494c6 (patch)
treedaaf47e37ff0343596cc3c2e67afe25251be8b32 /src/corelib/kernel
parent2046037499830506ec24097c9b7a739bb7c78566 (diff)
downloadQt-a9e5329168cd9113bf41293c05193d8b099494c6.zip
Qt-a9e5329168cd9113bf41293c05193d8b099494c6.tar.gz
Qt-a9e5329168cd9113bf41293c05193d8b099494c6.tar.bz2
Make qml debugging work with command line arguments
The environment variables do not work for Symbian devices, so without this change, QML debugging cannot be done on them. In addition, configure now contains an option to disable qml debugging entirely, due to it being a major security risk. Reviewed-by: kkoehne
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 512e193..d3f399b 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -2091,7 +2091,8 @@ QStringList QCoreApplication::arguments()
l1arg == "-stylesheet" ||
l1arg == "-widgetcount")
;
- else if (l1arg.startsWith("-style="))
+ else if (l1arg.startsWith("-style=") ||
+ l1arg.startsWith("-qmljsdebugger="))
;
else if (l1arg == "-style" ||
l1arg == "-session" ||