summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2012-05-08 16:38:05 -0300
committerLauro Neto <lauro.neto@openbossa.org>2012-05-08 16:40:22 -0300
commitef051cb02ae7dea026d1d1fcda744ca755e3e612 (patch)
tree6e49ae3968e892648b8457be4e716e07d64092e2
parent5e723a5b76e807ccfa5db28b56c3f639188f372d (diff)
Fix position of reportContentOrientationChange
reportContentOrientationChange has no effect when running on the desktop, so moving it to the harmattan-specific portion. Also there were some problems with the bottom ToolBar appearing at the first screen (only and randomly) when reportContent... is called *after* loading the QML sources. Reviewed-by: Alexis Menard
-rw-r--r--src/mobile/BrowserWindowMobile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mobile/BrowserWindowMobile.cpp b/src/mobile/BrowserWindowMobile.cpp
index c301ebf..b9ee19a 100644
--- a/src/mobile/BrowserWindowMobile.cpp
+++ b/src/mobile/BrowserWindowMobile.cpp
@@ -49,10 +49,9 @@ void BrowserWindowMobile::setupDeclarativeEnvironment()
setResizeMode(QQuickView::SizeRootObjectToView);
#if defined(SNOWSHOE_MEEGO_HARMATTAN)
+ reportContentOrientationChange(Qt::PortraitOrientation);
setSource(QUrl("qrc:///mobile/qml/main-harmattan.qml"));
#else
setSource(QUrl("qrc:///mobile/qml/Main.qml"));
#endif
-
- reportContentOrientationChange(Qt::PortraitOrientation);
}