X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fmain.cpp;h=a623fff56863b8877dcb0fb18efd62aed804d402;hb=9ca0a50d021a8d6e12cfb8f04671ba3dd389f92d;hp=be8b53419de0f7888103fad810065c8c54d3764d;hpb=3478f65b39560b333ba189e7d86e2c2cebfc9c7a;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/main.cpp b/HomeScreen/src/main.cpp index be8b534..a623fff 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,12 +36,18 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("HomeScreen"); - QCoreApplication::setApplicationVersion("0.1.1"); + QCoreApplication::setApplicationVersion("0.3.4"); + + qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str()); - // maybe trigger the wayland compositor to position the surface correctly MainWindow w; - w.move(0, 0); w.show(); +#ifdef __arm__ + // the WindowManager positions the surface correctly +#endif +#ifdef __i386__ + w.move(0, 0); +#endif #ifdef __arm__