summaryrefslogtreecommitdiffstats
path: root/examples/opengl/cube
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2011-11-10 11:36:04 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-18 20:25:53 +0100
commit36ea62e64f8ab950c733541fe4abcd05dd523046 (patch)
tree575a88fbb36091b7257f89ba26d7048223cf57f7 /examples/opengl/cube
parent5ec3ddc0ec6697d970cdb7c0348d9e3988f25fa8 (diff)
Compile fix for Mac OS X 10.7 with 10.6 sdk
Since it is an example it is cleaner to just include the header file as it will be available on other platforms anyway. Also ensured that the Qt includes were first before the system ones. Task-number: QTBUG-22641 Merge-request: 1462 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> (cherry picked from commit 4fffdabc948ff6afc6008d4cb723a6a2e10eef79) Change-Id: I4fffdabc948ff6afc6008d4cb723a6a2e10eef79
Diffstat (limited to 'examples/opengl/cube')
-rw-r--r--examples/opengl/cube/mainwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/cube/mainwidget.cpp b/examples/opengl/cube/mainwidget.cpp
index eae31c375e..c095888f98 100644
--- a/examples/opengl/cube/mainwidget.cpp
+++ b/examples/opengl/cube/mainwidget.cpp
@@ -46,10 +46,10 @@
#include <QBasicTimer>
#include <QMouseEvent>
+#include <QDebug>
#include <math.h>
-
-#include <QDebug>
+#include <locale.h>
MainWidget::MainWidget(QWidget *parent) :
QGLWidget(parent),