summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl_es2
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-12-19 14:19:18 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-19 23:42:49 +0100
commitc9aa1f2c2a7f6d7a238fa2554a419a80cc64752d (patch)
treece4e941bc70c7686cbb794b685479ef087030b5a /examples/opengl/hellogl_es2
parent56dc245a2beb42ceb9f2159da8cd5dd131e23a02 (diff)
Fix compilation of Open GL ES 2 examples when using a Qt-namespace.
Change-Id: I174569a8c989ab53fb6b9bb700c110db2f93c2d5 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/opengl/hellogl_es2')
-rw-r--r--examples/opengl/hellogl_es2/bubble.h2
-rw-r--r--examples/opengl/hellogl_es2/mainwindow.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/opengl/hellogl_es2/bubble.h b/examples/opengl/hellogl_es2/bubble.h
index cd4c8d91cc..b913d3620d 100644
--- a/examples/opengl/hellogl_es2/bubble.h
+++ b/examples/opengl/hellogl_es2/bubble.h
@@ -47,7 +47,7 @@
#include <QRect>
#include <QRectF>
-class QPainter;
+QT_FORWARD_DECLARE_CLASS(QPainter)
class Bubble
{
diff --git a/examples/opengl/hellogl_es2/mainwindow.h b/examples/opengl/hellogl_es2/mainwindow.h
index 7e16a6b6a7..4aac220692 100644
--- a/examples/opengl/hellogl_es2/mainwindow.h
+++ b/examples/opengl/hellogl_es2/mainwindow.h
@@ -43,9 +43,6 @@
#include <QMainWindow>
-class QSlider;
-class GLWidget;
-
class MainWindow : public QMainWindow
{
Q_OBJECT