diff options
author | Aurélien Gâteau <agateau@kde.org> | 2012-10-11 11:15:03 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-26 21:23:15 +0100 |
commit | fea68274b89a9bcde55eabbf6eb7bf2e8376d930 (patch) | |
tree | 9f906aabb545cd3a9fd7742b286fe83ab25b19c5 /src/corelib/kernel/qcoreapplication.cpp | |
parent | a1dfccf954b9cd7eeef43bcfb4cca454c51f0138 (diff) |
Allow qmljsdebugger argument and value to be separated by a space
This change makes it possible to use the QML JS debugger with KDE
applications.
Change-Id: Id5838fa34dcb8b54127abc6da6fe7c2e9a5a1c2e
Reviewed-by: David Faure (KDE) <faure@kde.org>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 586698d2c0..8ede244145 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -167,6 +167,9 @@ void QCoreApplicationPrivate::processCommandLineArguments() QByteArray arg = argv[i]; if (arg.startsWith("-qmljsdebugger=")) { qmljs_debug_arguments = QString::fromLocal8Bit(arg.right(arg.length() - 15)); + } else if (arg == "-qmljsdebugger" && i < argc - 1) { + ++i; + qmljs_debug_arguments = QString::fromLocal8Bit(argv[i]); } else { argv[j++] = argv[i]; } |