- QCoreApplication::setApplicationVersion("0.3.3");
-
- MainWindow w;
- w.show();
-#ifdef __arm__
- // the WindowManager positions the surface correctly
-#endif
-#ifdef __i386__
- w.move(0, 0);
-#endif
-
-
-#ifdef __arm__
- qDebug("Running on ARM architecture");
-#endif
-#ifdef __i386__
- qDebug("Running on x86 architecture");
-#endif
+ QCoreApplication::setApplicationVersion("0.6.0");
+
+ qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str());
+
+ qDBusRegisterMetaType<AppInfo>();
+ qDBusRegisterMetaType<QList<AppInfo> >();
+
+ qmlRegisterType<ApplicationLauncher>("HomeScreen", 1, 0, "ApplicationLauncher");
+ qmlRegisterType<StatusBarModel>("HomeScreen", 1, 0, "StatusBarModel");
+ qmlRegisterType<LayoutHandler>("HomeScreen", 1, 0, "LayoutHandler");
+
+
+ QQmlApplicationEngine engine;
+ engine.load(QUrl(QStringLiteral("qrc:/main.qml")));