diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-04-06 14:06:00 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-04-14 11:44:32 +0200 |
commit | 94b46de4050d023ecbb238c2636d7e252f8f5949 (patch) | |
tree | 311414d07fbcd915d206b3e194d724db724720fc /src/quick/scenegraph/util/qsgengine.h | |
parent | 51847c314200a179e113ea5dc4e1d24878b8bcfa (diff) |
Deprecate QSGEngine
...and warn about QSGAbstractRenderer becoming private.
Task-number: QTBUG-78596
Change-Id: If545e223907a90ae3bcfde235e9677e8a0a5899b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/util/qsgengine.h')
-rw-r--r-- | src/quick/scenegraph/util/qsgengine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/quick/scenegraph/util/qsgengine.h b/src/quick/scenegraph/util/qsgengine.h index c5a59b47e7..f00b7a0b6f 100644 --- a/src/quick/scenegraph/util/qsgengine.h +++ b/src/quick/scenegraph/util/qsgengine.h @@ -54,8 +54,7 @@ class QSGRectangleNode; class QSGImageNode; class QSGNinePatchNode; -// ### Qt 6: Remove or redesign. - +#if QT_DEPRECATED_SINCE(5, 15) class Q_QUICK_EXPORT QSGEngine : public QObject { Q_OBJECT @@ -73,6 +72,7 @@ public: explicit QSGEngine(QObject *parent = nullptr); ~QSGEngine() override; + QT_DEPRECATED_X("QSGEngine is going to be removed in Qt 6.0. Use QQuickRenderControl instead.") void initialize(QOpenGLContext *context); void invalidate(); @@ -84,6 +84,7 @@ public: QSGImageNode *createImageNode() const; QSGNinePatchNode *createNinePatchNode() const; }; +#endif QT_END_NAMESPACE |