summaryrefslogtreecommitdiffstats
path: root/src/core/render_widget_host_view_qt_delegate.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-07-11 11:42:10 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-07-14 21:51:01 +0000
commitfbe3acc7b2823f64c8f4e74233bb9fa8028f52bf (patch)
treeccc8f78e5c446343d8b4ac919fd174d9bf4a20d5 /src/core/render_widget_host_view_qt_delegate.h
parentf1f6700b4c15b44c7d5e0f773a8b9b77915098d6 (diff)
Switch away from deprecated QSG*Node classes
Use the new public QSG classes meant to replace QSGSimpleRectNode and QSGSimpleTextureNode. Change-Id: Icdfc3b4ba13dd28258defa955d050927abbae95b Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/render_widget_host_view_qt_delegate.h')
-rw-r--r--src/core/render_widget_host_view_qt_delegate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/render_widget_host_view_qt_delegate.h b/src/core/render_widget_host_view_qt_delegate.h
index 7ae936bad..39c972f4b 100644
--- a/src/core/render_widget_host_view_qt_delegate.h
+++ b/src/core/render_widget_host_view_qt_delegate.h
@@ -59,8 +59,15 @@ class QInputMethodEvent;
#if (QT_VERSION < QT_VERSION_CHECK(5, 8, 0))
class QSGImageNode;
typedef QSGImageNode QSGInternalImageNode;
+class QSGSimpleTextureNode;
+typedef QSGSimpleTextureNode QSGTextureNode;
+class QSGSimpleRectNode;
+typedef QSGSimpleRectNode QSGRectangleNode;
#else
class QSGInternalImageNode;
+class QSGRectangleNode;
+class QSGImageNode;
+typedef QSGImageNode QSGTextureNode;
#endif
QT_END_NAMESPACE
@@ -100,6 +107,8 @@ public:
virtual QSGTexture *createTextureFromImage(const QImage &) = 0;
virtual QSGLayer *createLayer() = 0;
virtual QSGInternalImageNode *createImageNode() = 0;
+ virtual QSGTextureNode *createTextureNode() = 0;
+ virtual QSGRectangleNode *createRectangleNode() = 0;
virtual void update() = 0;
virtual void updateCursor(const QCursor &) = 0;
virtual void resize(int width, int height) = 0;