aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-09-30 14:44:53 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-04 15:10:57 +0200
commit2903533aa08f4ee7ceff7615e52c9e6ed69553af (patch)
treec9950706e15e05bdde89cd62fb2fcf0daf44b25d /src
parent1567b298d293c28bebab352c855f595a540ab34c (diff)
Use QCoreApplication to get the qml debug arguments
The debug arguments string was moved from QApplication to QCoreApplication as part of the Qt refactor/library split, so there's no need to depend on QGuiApplication. Change-Id: I0eb87be318b80290be656d707e3d38020f765a90 Reviewed-on: http://codereview.qt-project.org/5883 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/debugger/qdeclarativedebugserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugserver.cpp b/src/declarative/debugger/qdeclarativedebugserver.cpp
index da7a8d2eab..eeb000bf69 100644
--- a/src/declarative/debugger/qdeclarativedebugserver.cpp
+++ b/src/declarative/debugger/qdeclarativedebugserver.cpp
@@ -49,7 +49,7 @@
#include <QtCore/QStringList>
#include <private/qobject_p.h>
-#include <private/qguiapplication_p.h>
+#include <private/qcoreapplication_p.h>
QT_BEGIN_NAMESPACE
@@ -169,7 +169,7 @@ QDeclarativeDebugServer *QDeclarativeDebugServer::instance()
if (!commandLineTested) {
commandLineTested = true;
- QGuiApplicationPrivate *appD = static_cast<QGuiApplicationPrivate*>(QObjectPrivate::get(qApp));
+ QCoreApplicationPrivate *appD = static_cast<QCoreApplicationPrivate*>(QObjectPrivate::get(qApp));
#ifndef QDECLARATIVE_NO_DEBUG_PROTOCOL
// ### remove port definition when protocol is changed
int port = 0;