From 2903533aa08f4ee7ceff7615e52c9e6ed69553af Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 30 Sep 2011 14:44:53 +0200 Subject: [PATCH] Use QCoreApplication to get the qml debug arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../debugger/qdeclarativedebugserver.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.2.5