summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2011-11-10 10:36:04 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-11-10 10:36:04 (GMT)
commit4fffdabc948ff6afc6008d4cb723a6a2e10eef79 (patch)
tree3d47e59f5933031251e0ad314bfcc27014480ac4 /examples/opengl
parent6c24cde00e3a046e6face6f08ec2ed996b54a8f1 (diff)
downloadQt-4fffdabc948ff6afc6008d4cb723a6a2e10eef79.zip
Qt-4fffdabc948ff6afc6008d4cb723a6a2e10eef79.tar.gz
Qt-4fffdabc948ff6afc6008d4cb723a6a2e10eef79.tar.bz2
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>
Diffstat (limited to 'examples/opengl')
-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 1116526..482c78e 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),