#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