summaryrefslogtreecommitdiff
path: root/examples/svg/svgviewer/svgview.cpp
diff options
context:
space:
mode:
authorQt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>2019-12-12 01:01:31 +0100
committerLars Knoll <lars.knoll@qt.io>2019-12-17 10:51:45 +0100
commit99081b68153e8b623d936d1ab8afbcf932e4f9b5 (patch)
tree6c7f12e86b139e326812f97990b5f1b1f1a9bac8 /examples/svg/svgviewer/svgview.cpp
parent0c059dc17968f18e65327fd3fe273ce95f38cd4e (diff)
downloadqtsvg-99081b68153e8b623d936d1ab8afbcf932e4f9b5.tar.gz
Update dependencies on 'dev' in qt/qtsvg
Remove the framebufferobject example as it still relied on the now removed QGL* classes. Ported the svgviewer example over to use QOpenGLWidget. Change-Id: Idfb1ea7bcb0c8ba7f3f97b4b2d26603f4f7ec96a Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'examples/svg/svgviewer/svgview.cpp')
-rw-r--r--examples/svg/svgviewer/svgview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/svg/svgviewer/svgview.cpp b/examples/svg/svgviewer/svgview.cpp
index e87d0ea..6674f87 100644
--- a/examples/svg/svgviewer/svgview.cpp
+++ b/examples/svg/svgviewer/svgview.cpp
@@ -59,7 +59,7 @@
#include <qmath.h>
#ifndef QT_NO_OPENGL
-#include <QGLWidget>
+#include <QOpenGLWidget>
#endif
SvgView::SvgView(QWidget *parent)
@@ -146,7 +146,7 @@ void SvgView::setRenderer(RendererType type)
if (m_renderer == OpenGL) {
#ifndef QT_NO_OPENGL
- setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
+ setViewport(new QOpenGLWidget);
#endif
} else {
setViewport(new QWidget);