Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.0
- import com.nokia.meego 1.0
- PageStackWindow {
- id: rootWindow
- initialPage: Main { id: mainPage }
- Tweet { id: tweetPage }
- Preferences { id: preferencesPage }
- About { id: aboutPage }
- Menu {
- id: myMenu
- MenuLayout {
- MenuItem { text: "Exit"; onClicked: Qt.quit() }
- MenuItem { text: "About"; onClicked: aboutPage.open() }
- MenuItem { text: "Tweet"; onClicked: pageStack.push(tweetPage) }
- MenuItem { text: "Preferences";
- onClicked: {
- pageStack.push(preferencesPage)
- preferencesPage.showMain();
- }
- }
- }
- }
- ToolBarLayout {
- id: commonTools
- visible: false
- ToolIcon {
- iconId: "toolbar-back"
- onClicked: pageStack.pop()
- visible: { pageStack.depth<=1 ? false : true }
- }
- ToolIcon {
- iconId: "toolbar-view-menu"
- anchors.right: parent.right
- onClicked: myMenu.open()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment