X-Git-Url: http://git.maemo.org/git/?p=ubi;a=blobdiff_plain;f=main.cpp;h=ba8019a3885be762d311b927306f1d7902fe6848;hp=9238ebcffec433e06509694134262ead54547b9b;hb=HEAD;hpb=9258f43ecdca38297659820679a07b3f21fe6ffd diff --git a/main.cpp b/main.cpp index 9238ebc..ba8019a 100644 --- a/main.cpp +++ b/main.cpp @@ -26,7 +26,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) } QTranslator translator; QString dir = "translations"; - //dir = ":/translations"; + dir = ":/translations"; #if defined(MEEGO_EDITION_HARMATTAN) dir = ":/translations"; #endif @@ -53,8 +53,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) #if defined(Q_WS_MAEMO_5) qputenv("N900_PORTRAIT_SENSORS", "1"); //viewer.setMainQmlFile(QLatin1String("qml/ubi/meego_main.qml")); - viewer.setSource(QUrl("qrc:///qml/ubi/meego_main.qml")); - viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape); + viewer.setSource(QUrl("qrc:///qml/ubi/main.qml")); + //viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape); + viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setGeometry(QRect(0,0,800,480)); #endif