Advertisement
Guest User

Untitled

a guest
Jul 18th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. import QtQuick 1.1
  2. import com.nokia.meego 1.0
  3.  
  4. Page {
  5. tools: commonTools
  6.  
  7. state: screen.orientationString
  8.  
  9.  
  10. Label {
  11. id: label
  12. anchors.centerIn: parent
  13. text: screen.orientationString
  14. visible: false
  15. }
  16.  
  17. Button{
  18. anchors {
  19. horizontalCenter: parent.horizontalCenter
  20. top: label.bottom
  21. topMargin: 10
  22. }
  23. text: qsTr("Click here!")
  24. onClicked: label.visible = true
  25. }
  26. states: [
  27. State {
  28. name: "Portrait"
  29.  
  30. PropertyChanges { target: object; width: 100}
  31. },
  32. State {
  33. name: "Landscape"
  34.  
  35. PropertyChanges { target: object; width: 200}
  36. }
  37. ]
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement