Advertisement
Guest User

Untitled

a guest
Aug 4th, 2011
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 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. PageStackWindowStyle {
  10. id: customStyle;
  11. background: "qrc:/ugly.JPG";
  12. backgroundFillMode: Image.PreserveAspectCrop
  13. }
  14.  
  15. MainPage{id: mainPage}
  16.  
  17. ToolBarLayout {
  18. id: commonTools
  19. visible: true
  20. ToolIcon { platformIconId: "toolbar-view-menu";
  21. anchors.right: parent===undefined ? undefined : parent.right
  22. onClicked: (myMenu.status == DialogStatus.Closed) ? myMenu.open() : myMenu.close()
  23. }
  24. }
  25.  
  26. Menu {
  27. id: myMenu
  28. visualParent: pageStack
  29. MenuLayout {
  30. MenuItem { text: "Sample menu item" }
  31. }
  32. }
  33. Component.onCompleted: appWindow.platformStyle = customStyle
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement