Gallery.qml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. import QtQuick 2.0
  2. import "../QUItIndicators"
  3. Item {
  4. id: root
  5. property real tempValue: 0;
  6. property bool tempRunning: true;
  7. height: contentArea.height
  8. Grid {
  9. id: contentArea
  10. x: (root.width - width)/2
  11. y: 40
  12. columns: root.width < 448 ? 1 : root.width < 2*448 ? 3 : 6
  13. rowSpacing: 50
  14. BusyIndicator {
  15. size: "small"
  16. running: tempRunning
  17. Text {
  18. y: -30
  19. font.pixelSize: 16
  20. color: "#b0b0b0"
  21. styleColor: "#000000"
  22. style: Text.Raised
  23. text: "BusyIndicators"
  24. }
  25. }
  26. BusyIndicator {
  27. running: tempRunning
  28. }
  29. BusyIndicator {
  30. size: "large"
  31. running: tempRunning
  32. }
  33. ProgressIndicator {
  34. size: "small"
  35. value: tempValue
  36. running: tempRunning
  37. Text {
  38. y: -30
  39. font.pixelSize: 16
  40. color: "#b0b0b0"
  41. styleColor: "#000000"
  42. style: Text.Raised
  43. text: "ProgressIndicators"
  44. }
  45. }
  46. ProgressIndicator {
  47. value: tempValue
  48. running: tempRunning
  49. }
  50. ProgressIndicator {
  51. size: "large"
  52. value: tempValue
  53. running: tempRunning
  54. }
  55. BusyIndicator {
  56. size: "small"
  57. running: tempRunning
  58. invertedTheme: true
  59. Text {
  60. y: -30
  61. font.pixelSize: 16
  62. color: "#b0b0b0"
  63. styleColor: "#000000"
  64. style: Text.Raised
  65. text: "BusyIndicators - Inverted Theme"
  66. }
  67. }
  68. BusyIndicator {
  69. running: tempRunning
  70. invertedTheme: true
  71. }
  72. BusyIndicator {
  73. size: "large"
  74. running: tempRunning
  75. invertedTheme: true
  76. }
  77. ProgressIndicator {
  78. size: "small"
  79. value: tempValue
  80. running: tempRunning
  81. invertedTheme: true
  82. Text {
  83. y: -30
  84. font.pixelSize: 16
  85. color: "#b0b0b0"
  86. styleColor: "#000000"
  87. style: Text.Raised
  88. text: "ProgressIndicators - Inverted Theme"
  89. }
  90. }
  91. ProgressIndicator {
  92. value: tempValue
  93. running: tempRunning
  94. invertedTheme: true
  95. }
  96. ProgressIndicator {
  97. size: "large"
  98. value: tempValue
  99. running: tempRunning
  100. invertedTheme: true
  101. }
  102. }
  103. SequentialAnimation {
  104. running: true
  105. loops: Animation.Infinite
  106. NumberAnimation {
  107. target: root
  108. property: "tempValue"
  109. from: 0
  110. to: 1
  111. duration: 5000
  112. easing.type: Easing.InOutQuad
  113. }
  114. PropertyAction {
  115. target: root
  116. property: "tempRunning"
  117. value: false
  118. }
  119. PauseAnimation { duration: 480 }
  120. PropertyAction {
  121. target: root
  122. property: "tempValue"
  123. value: 0
  124. }
  125. PropertyAction {
  126. target: root
  127. property: "tempRunning"
  128. value: true
  129. }
  130. }
  131. }