Fixed build for Symbian target.
[gpsdata] / src / compass.h
index f30ea82..8462564 100644 (file)
 #ifndef COMPASS_H
 #define COMPASS_H
 
-#ifdef QT_NO_OPENGL
-#include <QWidget>
+#ifndef QT_NO_OPENGL
+# include <QGLWidget>
 #else
-#include <QGLWidget>
+# include <QWidget>
 #endif
 #include <QTimer>
 
-#ifdef QT_NO_OPENGL
-class Compass : public QWidget
-#else
+#ifndef QT_NO_OPENGL
 class Compass : public QGLWidget
+#else
+class Compass : public QWidget
 #endif
 {
   Q_OBJECT