summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwindow/background_renderer.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2014-08-06 10:25:36 +0200
committerLaszlo Agocs <[email protected]>2014-08-07 09:19:15 +0200
commit78221fe762fc21b629eb9a5643364d23680c349d (patch)
tree0630409789950f54c0b3ea13c3f1508f20b71833 /examples/opengl/qopenglwindow/background_renderer.cpp
parent37023a096d5fec6937bca25047973a05041db66f (diff)
Clean up the QOpenGLWindow example
1. Use includes without module prefixes, as is the custom in examples. 2. No inline functions to make it more readable. 3. Pause animation on pressing P and document our signal connection a bit more. Change-Id: I68dc3d4c74b639cf3fec17b63b7f49626db58bdb Reviewed-by: Gunnar Sletta <[email protected]>
Diffstat (limited to 'examples/opengl/qopenglwindow/background_renderer.cpp')
-rw-r--r--examples/opengl/qopenglwindow/background_renderer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/opengl/qopenglwindow/background_renderer.cpp b/examples/opengl/qopenglwindow/background_renderer.cpp
index 6cec6666b6e..4c377e14375 100644
--- a/examples/opengl/qopenglwindow/background_renderer.cpp
+++ b/examples/opengl/qopenglwindow/background_renderer.cpp
@@ -40,13 +40,13 @@
#include "background_renderer.h"
-#include <QtCore/qmath.h>
-#include <QtCore/QFileInfo>
-#include <QtCore/QTime>
+#include <qmath.h>
+#include <QFileInfo>
+#include <QTime>
-#include <QtGui/QOpenGLShaderProgram>
-#include <QtGui/QOpenGLContext>
-#include <QtGui/QOpenGLFunctions>
+#include <QOpenGLShaderProgram>
+#include <QOpenGLContext>
+#include <QOpenGLFunctions>
#include <math.h>