X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fmain.cpp;h=a896c2e6e6c860fd2c69fa5ba0a88ec814bddab1;hb=43c6b242b71a35a164b8e14a54c99f2bf667b37b;hp=cc552f245eca4c7f0ab5207160c552b6196bb86e;hpb=0a468d9b5ae7b3e5ba106facf17698d89b1ce200;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/main.cpp b/HomeScreen/src/main.cpp index cc552f2..a896c2e 100644 --- a/HomeScreen/src/main.cpp +++ b/HomeScreen/src/main.cpp @@ -17,7 +17,7 @@ #include "mainwindow.h" #include #include -#include +//#include int main(int argc, char *argv[]) { @@ -36,18 +36,21 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("HomeScreen"); - QCoreApplication::setApplicationVersion("0.2.0"); + QCoreApplication::setApplicationVersion("0.6.0"); + + qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str()); + + qDBusRegisterMetaType(); + qDBusRegisterMetaType >(); MainWindow w; w.show(); -#ifdef __arm__ - // trigger wayland compositor to position the surface correctly -#endif -#ifdef __i386__ +#ifdef HAVE_IVI_LAYERMANAGEMENT_API + // the WindowManager positions the surface correctly +#else w.move(0, 0); #endif - #ifdef __arm__ qDebug("Running on ARM architecture"); #endif