diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2012-05-04 16:32:07 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2012-05-04 17:05:29 -0300 |
commit | a6efad25ff3309a4cfd2de676540bc692b56fc60 (patch) | |
tree | 3cc9e1c7517e338b4b4b978193a25c1f8bfe87a0 | |
parent | 7bc752cb22489e2e3692c898b34b29273639373c (diff) |
Revert hack to fix the status bar.
The content's orientation was fixed on qtbase but
it still does not show when not swiping on portrait mode,
appearing just its empty black space. When swiping the
system status bar appears correctly.
Reverting the hack at least fixes the screen dimension
problems that appeared when it was hidden.
Also updated BrowserWindowMobile to report its orientation
following the new orientation API.
Reviewed-by: Rafael Brandão
-rw-r--r-- | src/mobile/BrowserWindowMobile.cpp | 2 | ||||
-rw-r--r-- | src/mobile/qml/main-harmattan.qml | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/mobile/BrowserWindowMobile.cpp b/src/mobile/BrowserWindowMobile.cpp index 42b01f3..c301ebf 100644 --- a/src/mobile/BrowserWindowMobile.cpp +++ b/src/mobile/BrowserWindowMobile.cpp @@ -53,4 +53,6 @@ void BrowserWindowMobile::setupDeclarativeEnvironment() #else setSource(QUrl("qrc:///mobile/qml/Main.qml")); #endif + + reportContentOrientationChange(Qt::PortraitOrientation); } diff --git a/src/mobile/qml/main-harmattan.qml b/src/mobile/qml/main-harmattan.qml index c5366e8..e90884d 100644 --- a/src/mobile/qml/main-harmattan.qml +++ b/src/mobile/qml/main-harmattan.qml @@ -17,9 +17,6 @@ import com.nokia.meego 2.0 PageStackWindow { - // Hiding the status bar until the Orientation problems on N9 are fixed. - // Tentative fix: https://codereview.qt-project.org/#change,24423 - showStatusBar: false initialPage: Page { orientationLock: PageOrientation.LockPortrait |