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
This commit is contained in:
Andy Shaw 2011-11-10 11:36:04 +01:00 committed by Qt by Nokia
parent 5ec3ddc0ec
commit 36ea62e64f

View File

@ -46,10 +46,10 @@
#include <QBasicTimer> #include <QBasicTimer>
#include <QMouseEvent> #include <QMouseEvent>
#include <QDebug>
#include <math.h> #include <math.h>
#include <locale.h>
#include <QDebug>
MainWidget::MainWidget(QWidget *parent) : MainWidget::MainWidget(QWidget *parent) :
QGLWidget(parent), QGLWidget(parent),