aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmltypeloader_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-10-06 17:30:36 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-11-08 13:18:25 +0000
commit4e6d5951ed853b236b03ad46ac14649449830d96 (patch)
tree8ee83435fe83ce38ae0d250b8bb0722f45fad63a /src/qml/qml/qqmltypeloader_p.h
parent7bedd55551fbe95355b0db11f9d576924e829f9d (diff)
Make qml-debug a proper feature
Change-Id: Iea33ff0200f0bbf43953fedba030edf91d0f1417 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypeloader_p.h')
-rw-r--r--src/qml/qml/qqmltypeloader_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h
index ef63e02b4f..94552cd5a0 100644
--- a/src/qml/qml/qqmltypeloader_p.h
+++ b/src/qml/qml/qqmltypeloader_p.h
@@ -321,13 +321,13 @@ public:
void initializeEngine(QQmlExtensionInterface *, const char *);
void invalidate();
-#ifdef QT_NO_QML_DEBUGGER
+#if !QT_CONFIG(qml_debug)
quintptr profiler() const { return 0; }
void setProfiler(quintptr) {}
#else
QQmlProfiler *profiler() const { return m_profiler.data(); }
void setProfiler(QQmlProfiler *profiler);
-#endif // QT_NO_QML_DEBUGGER
+#endif // QT_CONFIG(qml_debug)
private:
@@ -379,7 +379,7 @@ private:
QQmlEngine *m_engine;
QQmlTypeLoaderThread *m_thread;
-#ifndef QT_NO_QML_DEBUGGER
+#if QT_CONFIG(qml_debug)
QScopedPointer<QQmlProfiler> m_profiler;
#endif