Get rid of harmattan PageStack and Page
authorMohammed Sameer <msameer@foolab.org>
Sun, 15 Sep 2013 01:12:19 +0000 (04:12 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 15 Sep 2013 01:12:19 +0000 (04:12 +0300)
They both drag in ToolBar.qml and its style which are not used anywhere.

qml/harmattan/CameraPage.qml
qml/harmattan/CameraWindow.qml

index 9a4d638..a60e054 100644 (file)
@@ -21,9 +21,7 @@
  */
 
 import QtQuick 1.1
-import com.nokia.meego 1.1
 
-Page {
+Item {
     anchors.fill: parent
-    orientationLock: PageOrientation.LockLandscape
 }
index 70753bc..77c0578 100644 (file)
 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
         }
     }
 }