Advertisement
Guest User

Untitled

a guest
Jul 19th, 2011
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. import QtQuick 1.1
  2. import com.meego 1.0
  3.  
  4. PageStackWindow {
  5. id: appWindow
  6.  
  7. initialPage: mainPage
  8.  
  9. MainPage{id: mainPage}
  10.  
  11. ToolBarLayout {
  12. id: commonTools
  13. visible: true
  14.  
  15. anchors.bottom: parent.bottom;
  16.  
  17. ToolIcon {
  18. platformIconId: "toolbar-view-menu";
  19. anchors.right: parent===undefined ? undefined : parent.right
  20. onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
  21. }
  22.  
  23. ButtonRow {
  24. style: TabButtonStyle { }
  25.  
  26. anchors.left: parent.left;
  27.  
  28. TabButton {
  29. text: "Main"
  30. tab: mainPage
  31. }
  32.  
  33. TabButton {
  34. text: "Map"
  35. tab: mapPage
  36. }
  37. }
  38. }
  39.  
  40. Menu {
  41. id: myMenu
  42. visualParent: pageStack
  43. MenuLayout {
  44. MenuItem { text: "Sample menu item" }
  45. }
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement