Advertisement
Guest User

Untitled

a guest
Sep 15th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. import QtQuick 1.0
  2. import com.javispedro.sowatch 1.0
  3.  
  4. Rectangle {
  5. width: 96
  6. height: 96
  7.  
  8. color: "white"
  9.  
  10. Rectangle {
  11. width: 90
  12. height: 90
  13.  
  14. color: "black"
  15.  
  16. Rectangle {
  17. width: 10
  18. height: 10
  19.  
  20. x: 0
  21. y: 0
  22.  
  23. SequentialAnimation on y {
  24. loops: Animation.Infinite
  25. NumberAnimation { from: 0; to: 60; duration: 1000 }
  26. NumberAnimation { from: 60; to: 0; duration: 1000 }
  27. }
  28. }
  29.  
  30. Rectangle {
  31. width: 10
  32. height: 10
  33.  
  34. x: 80
  35. y: 00
  36.  
  37. SequentialAnimation on y {
  38. loops: Animation.Infinite
  39. NumberAnimation { from: 0; to: 60; duration: 1000 }
  40. }
  41. }
  42.  
  43. Rectangle {
  44. width: 10
  45. height: 10
  46. x: 10
  47. y: 10
  48.  
  49. SequentialAnimation on visible {
  50. loops: Animation.Infinite
  51. PropertyAnimation { to: false; duration: 1000 }
  52. PropertyAnimation { to: true; duration: 1000 }
  53. }
  54. }
  55.  
  56. Rectangle {
  57. id: big1
  58. width: 20
  59. height: 20
  60. x: 40
  61. y: 40
  62.  
  63. color: "white"
  64. visible: false
  65. }
  66.  
  67. Text {
  68. id: name
  69. text: watch.model
  70. color: "white"
  71. }
  72.  
  73. Connections {
  74. target: watch
  75. onButtonPressed: {
  76. console.log(button);
  77. }
  78. }
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement