diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2012-05-08 16:38:05 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2012-05-08 16:40:22 -0300 |
commit | ef051cb02ae7dea026d1d1fcda744ca755e3e612 (patch) | |
tree | 6e49ae3968e892648b8457be4e716e07d64092e2 | |
parent | 5e723a5b76e807ccfa5db28b56c3f639188f372d (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.cpp | 3 |
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); } |