Advertisement
Guest User

Untitled

a guest
Feb 6th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3.  
  4.  
  5. Page {
  6. id: page
  7. property int health: 36
  8.  
  9. SilicaFlickable {
  10. anchors.fill: parent
  11. contentHeight: column.height
  12.  
  13. Column {
  14. id: column
  15. width: parent.width
  16. anchors.horizontalCenter: parent.horizontalCenter
  17. spacing: 5
  18.  
  19. PageHeader {
  20.  
  21. title: "Health "
  22. }
  23.  
  24. Label {
  25. anchors.horizontalCenter: parent.horizontalCenter
  26. text: health;
  27. font.pixelSize: Theme.fontSizeHuge + 150
  28. }
  29.  
  30. Row{
  31. //anchors.leftMargin: parent.width - (200*2+20)/2
  32. anchors.leftMargin: 20
  33. spacing: 20
  34. Rectangle {
  35. width: 200
  36. height: 200
  37. color: "red"
  38. border.color: "black"
  39. border.width: 1
  40. radius: width*0.5
  41. }
  42.  
  43. Rectangle {
  44. width: 200
  45. height: 200
  46. color: "green"
  47. border.color: "black"
  48. border.width: 1
  49. radius: width*0.5
  50. }
  51.  
  52. }
  53.  
  54. }
  55. }
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement