From: Kent Hansen Date: Fri, 30 Sep 2011 12:44:53 +0000 (+0200) Subject: Use QCoreApplication to get the qml debug arguments X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2903533aa08f4ee7ceff7615e52c9e6ed69553af;p=konrad%2Fqtdeclarative.git 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 Reviewed-by: Kai Koehne Reviewed-by: Jędrzej Nowacki --- diff --git a/src/declarative/debugger/qdeclarativedebugserver.cpp b/src/declarative/debugger/qdeclarativedebugserver.cpp index da7a8d2..eeb000b 100644 --- a/src/declarative/debugger/qdeclarativedebugserver.cpp +++ b/src/declarative/debugger/qdeclarativedebugserver.cpp @@ -49,7 +49,7 @@ #include #include -#include +#include QT_BEGIN_NAMESPACE @@ -169,7 +169,7 @@ QDeclarativeDebugServer *QDeclarativeDebugServer::instance() if (!commandLineTested) { commandLineTested = true; - QGuiApplicationPrivate *appD = static_cast(QObjectPrivate::get(qApp)); + QCoreApplicationPrivate *appD = static_cast(QObjectPrivate::get(qApp)); #ifndef QDECLARATIVE_NO_DEBUG_PROTOCOL // ### remove port definition when protocol is changed int port = 0;