#include "compass.h"
#ifndef M_PI
-#define M_PI 3.14159265358979323846
+# define M_PI 3.14159265358979323846
#endif
#ifdef Q_WS_MAEMO_5
-#define LABEL_FONT_HIGH 44
+# define LABEL_FONT_HIGH 44
#else
-#define LABEL_FONT_HIGH 14
+# define LABEL_FONT_HIGH 14
#endif
#ifdef Q_WS_MAEMO_5
-#define LABEL_FONT_SMALL 26
+# define LABEL_FONT_SMALL 26
#else
-#define LABEL_FONT_SMALL 8
+# define LABEL_FONT_SMALL 8
#endif
#define GPS_MIN_GROUND_SPEED 1 /* 3.6 km/h */
update();
}
-#ifdef QT_NO_OPENGL
-Compass::Compass(CompassType type) : QWidget()
-#else
+#ifndef QT_NO_OPENGL
Compass::Compass(CompassType type) : QGLWidget(QGLFormat(QGL::SampleBuffers), 0)
+#else
+Compass::Compass(CompassType type) : QWidget()
#endif
{
m_type = type;