WWW update
[ubi] / main.cpp
index 9238ebc..ba8019a 100644 (file)
--- 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