12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import QtQuick 1.1
- import com.meego 1.0
- //import "mainapp.js" as Logic
- PageStackWindow {
- id: appWindow
- initialPage: mainPage
- MainPage{id: mainPage}
- // Preferences{id:preferencesPage}
- ToolBarLayout {
- id: commonTools
- visible: true
- ToolIcon {
- platformIconId: "toolbar-volume-off"
- anchors.left: parent.left
- onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
- }
- ToolIcon {
- platformIconId: "toolbar-add"
- anchors.centerIn: parent
- //onClicked: initialPage = preferencesPage
- }
- ToolIcon {
- platformIconId: "toolbar-view-menu";
- anchors.right: parent===undefined ? undefined : parent.right
- onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
- }
- }
- Menu {
- id: menu2
- visualParent: pageStack
- MenuLayout {
- MenuItem {
- text: "close this stuff"
- onClicked: menu2.close()
- }
- }
- }
- Menu {
- id: myMenu
- visualParent: pageStack
- MenuLayout {
- MenuItem { text: "Sample menu item"
- onClicked: menu2.open()
- }
- MenuItem { text: "Another Option" }
- }
- }
- }
|