# Needs to be defined for Symbian
#DEFINES += NETWORKACCESS
-symbian {
-TARGET.UID3 = 0xECDDA32D
-TARGET.CAPABILITY = Location
-}
-
# If your application uses the Qt Mobility libraries, uncomment
# the following lines and add the respective components to the
# MOBILITY variable.
CONFIG += mobility
MOBILITY += location
-QT += dbus
-
-contains(QT_CONFIG, opengl): QT += opengl
+QT += dbus opengl
SOURCES += \
src/satelliteviewwindow.cpp \
FORMS +=
symbian {
-SOURCES += src/satellitesignalstrengthwindow.cpp
-HEADERS += src/satellitesignalstrengthwindow.h
+ SOURCES += src/satellitesignalstrengthwindow.cpp
+ HEADERS += src/satellitesignalstrengthwindow.h
+
+ QT -= dbus opengl
+ DEFINES += QT_NO_OPENGL
+
+ TARGET.UID3 = 0xECDDA32D
+ TARGET.CAPABILITY = Location
}
# Please do not modify the following two lines. Required for deployment.
#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;
#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
#include <qnumeric.h>
#ifdef Q_OS_SYMBIAN
-#include <eikenv.h>
-#include <eikappui.h>
-#include <aknenv.h>
-#include <aknappui.h>
+# include <eikenv.h>
+# include <eikappui.h>
+# include <aknenv.h>
+# include <aknappui.h>
#endif
#ifdef Q_WS_MAEMO_5
-#include <QtDBus>
+# include <QtDBus>
#endif
#include "mainwindow.h"
#include "satelliteviewwindow.h"
#ifdef Q_OS_SYMBIAN
-#include "satellitesignalstrengthwindow.h"
+# include "satellitesignalstrengthwindow.h"
#endif
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
}
#ifdef Q_OS_SYMBIAN
-void MainWindow::satelliteSignalStrengthMenuClicked()
+void MainWindow::onSatelliteSignalStrengthMenuClicked()
{
SatelliteSignalStrengthWindow *satelliteSignalStrengthWindow = new SatelliteSignalStrengthWindow(this);
satelliteSignalStrengthWindow->setSatelliteInfoSource(m_satellite);
#include <QGeoSatelliteInfoSource>
#ifdef Q_WS_MAEMO_5
-#include "satellitesignalstrength.h"
+# include "satellitesignalstrength.h"
#endif
QTM_USE_NAMESPACE
#include "satelliteview.h"
#ifndef M_PI
-#define M_PI 3.14159265358979323846
+# define M_PI 3.14159265358979323846
#endif
void SatelliteView::updateWidget(const QList<QGeoSatelliteInfo> &satellites, bool inUseList)