Use correctly the PageStackWindow
[mussorgsky] / ui / main.qml
index 543b8df..f7b65bf 100644 (file)
@@ -4,40 +4,9 @@ import com.meego 1.0
 PageStackWindow {
     id: appWindow
 
-    initialPage: Empty {}
+    platformStyle: PageStackWindowStyle { id: defaultStyle }
 
-    TabGroup {
-      id: tabGroup
-      currentTab: albumsTab
-      AlbumsPage {id: albumsTab}
-      SongsPage {id: othersTab}
-    }
+    initialPage: Mussorgsky {}
 
-    ToolBarLayout {
-        id: commonTools
-        visible: true
-        ButtonRow {
-             style: TabButtonStyle { }
-             TabButton {
-                  text: "Albums"
-                  tab: albumsTab
-             }
-             TabButton {
-                  text: "Songs"
-                  tab: othersTab
-             }
-        }
-        ToolIcon { platformIconId: "toolbar-view-menu";
-             anchors.right: parent===undefined ? undefined : parent.right
-             onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
-        }
-    }
-
-    Menu {
-        id: myMenu
-        MenuLayout {
-            MenuItem { text: "Download all" }
-        }
-    }
 
 }