aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/app.pro5
-rw-r--r--app/main.cpp42
2 files changed, 0 insertions, 47 deletions
diff --git a/app/app.pro b/app/app.pro
index 8783f53..e881bc5 100644
--- a/app/app.pro
+++ b/app/app.pro
@@ -2,11 +2,6 @@ TARGET = navigation
QT = quick qml aglextras
PKGCONFIG += qlibhomescreen qlibwindowmanager
-equals(DEFINES, "DESKTOP"){
- QT -= aglextras
- PKGCONFIG -= qlibhomescreen qlibwindowmanager
-}
-
QT += positioning
QT += dbus
QT += core
diff --git a/app/main.cpp b/app/main.cpp
index 0c10209..aa7768b 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -15,21 +15,9 @@
* limitations under the License.
*/
-#ifdef DESKTOP
-#define USE_QTAGLEXTRAS 0
-#define USE_QLIBWINDOWMANAGER 0
-#else
-#define USE_QTAGLEXTRAS 0
-#define USE_QLIBWINDOWMANAGER 1
-#endif
-
-#if USE_QTAGLEXTRAS
-#include <QtAGLExtras/AGLApplication>
-#elif USE_QLIBWINDOWMANAGER
#include <qlibwindowmanager.h>
#include <qlibhomescreen.h>
#include <string>
-#endif
#include <QtCore/QDebug>
#include <QtCore/QCommandLineParser>
#include <QtCore/QUrlQuery>
@@ -56,13 +44,6 @@ int main(int argc, char *argv[])
return 1;
}
-#if USE_QTAGLEXTRAS
- AGLApplication app(argc, argv);
- app.setApplicationName("navigation");
- app.setupApplicationRole("navigation");
- app.load(QUrl(QStringLiteral("qrc:/navigation.qml")));
-
-#elif USE_QLIBWINDOWMANAGER
QGuiApplication app(argc, argv);
QString graphic_role = QString("navigation");
int port = 1700;
@@ -131,29 +112,6 @@ int main(int argc, char *argv[])
DBus_Server dbus(map);
dbus_server_navigationcore dbus_navigationcore(map);
-#else // for only libwindowmanager
- QGuiApplication app(argc, argv);
- app.setApplicationName("navigation");
-
- // Load qml
- QQmlApplicationEngine engine;
-
- MarkerModel model;
- engine.rootContext()->setContextProperty("markerModel", &model);
-
- Guidance_Module guidance;
- engine.rootContext()->setContextProperty("guidanceModule", &guidance);
-
- File_Operation file;
- engine.rootContext()->setContextProperty("fileOperation", &file);
-
- engine.load(QUrl(QStringLiteral("qrc:/navigation.qml")));
- QObject *map = engine.rootObjects().first()->findChild<QObject*>("map");
- DBus_Server dbus(map);
- dbus_server_navigationcore dbus_navigationcore(map);
-
-#endif
-
return app.exec();
}