aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-14 21:11:53 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-02 13:10:02 +0200
commitd181ec0c4554b9c4c6c16854e87ea279e1e42552 (patch)
treef9805ad2ddbd2165b18629f93ab9615294f922db /src/quick
parente043b7423ff069108c8d656e4c9ebcc9f500bedd (diff)
Fix deprecation attribute in QSGAbstractRenderer
Do not warn when building Qt Quick itself. Change-Id: I33cf71506729bf545a6b4533fb0bb1135bf7188f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/scenegraph/coreapi/qsgabstractrenderer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgabstractrenderer.h b/src/quick/scenegraph/coreapi/qsgabstractrenderer.h
index 258a5fed14..fc74c54e01 100644
--- a/src/quick/scenegraph/coreapi/qsgabstractrenderer.h
+++ b/src/quick/scenegraph/coreapi/qsgabstractrenderer.h
@@ -73,9 +73,11 @@ public:
~QSGAbstractRenderer() override;
// just have a warning about becoming private, ifdefing the whole class is not feasible
+#if !defined(QT_BUILD_QUICK_LIB)
#if QT_DEPRECATED_SINCE(5, 15)
QT_DEPRECATED_X("QSGAbstractRenderer is no longer going to be public in Qt 6.0. QSGEngine-based workflows are expected to migrate to QQuickRenderControl instead.")
#endif
+#endif
void setRootNode(QSGRootNode *node);
QSGRootNode *rootNode() const;
void setDeviceRect(const QRect &rect);