Debugger: Use "QML" also in macro names
authorKai Koehne <kai.koehne@nokia.com>
Fri, 30 Mar 2012 11:49:33 +0000 (13:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 30 Mar 2012 13:51:16 +0000 (15:51 +0200)
QT_DECLARATIVE_DEBUG will be removed as soon as qtbase is
updated.

Change-Id: I9dbfe95b8bcb3bf1502319a040a758389b6977a2
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
src/qml/debugger/qqmldebug.h
src/qml/debugger/qqmldebugserver.cpp
tools/qmlscene/qmlscene.pro

index 318e0bd..115f3cb 100644 (file)
@@ -55,9 +55,9 @@ struct Q_QML_EXPORT QQmlDebuggingEnabler
 };
 
 // Execute code in constructor before first QQmlEngine is instantiated
-#if defined(QT_DECLARATIVE_DEBUG_NO_WARNING)
+#if defined(QT_QML_DEBUG_NO_WARNING)
 static QQmlDebuggingEnabler qmlEnableDebuggingHelper(false);
-#elif defined(QT_DECLARATIVE_DEBUG)
+#elif defined(QT_QML_DEBUG) || defined(QT_DECLARATIVE_DEBUG)
 static QQmlDebuggingEnabler qmlEnableDebuggingHelper(true);
 #endif
 
index 2b2c81a..4e4a86d 100644 (file)
@@ -255,7 +255,7 @@ QQmlDebugServer *QQmlDebugServer::instance()
         commandLineTested = true;
 
         QCoreApplicationPrivate *appD = static_cast<QCoreApplicationPrivate*>(QObjectPrivate::get(qApp));
-#ifndef QQML_NO_DEBUG_PROTOCOL
+#ifndef QT_QML_NO_DEBUGGER
         // ### remove port definition when protocol is changed
         int port = 0;
         bool block = false;
index 3e63bd7..464f9b3 100644 (file)
@@ -14,4 +14,4 @@ SOURCES += main.cpp
 
 CONFIG += console
 
-DEFINES += QML_RUNTIME_TESTING QT_DECLARATIVE_DEBUG_NO_WARNING
+DEFINES += QML_RUNTIME_TESTING QT_QML_DEBUG_NO_WARNING