They both drag in ToolBar.qml and its style which are not used anywhere.
*/
import QtQuick 1.1
-import com.nokia.meego 1.1
-Page {
+Item {
anchors.fill: parent
- orientationLock: PageOrientation.LockLandscape
}
import QtQuick 1.1
import com.nokia.meego 1.1
-// PageStackWindow has the ugly toolbar which is always visible
-// upon startup no matter what I do.
-
Window {
+ id: window
property Component initialPage
+ property Item page
- PageStack {
- id: stack
- }
-
+ Component.onDestruction: page.destroy()
Component.onCompleted: {
+ screen.setAllowedOrientations(Screen.Landscape)
theme.inverted = true
if (initialPage) {
- stack.push(initialPage)
+ page = initialPage.createObject(window)
+ page.visible = true
}
}
}