QuiaMiniFlickrDelegate.qml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. import Qt 4.7
  2. Rectangle {
  3. id: mainFilmStrip
  4. width: 125
  5. height: 134
  6. color: "darkgrey"
  7. property string imageSource
  8. Rectangle {
  9. id: rectangle1
  10. width: 120
  11. height: 100
  12. radius: 9
  13. anchors.centerIn: parent
  14. border.width: 1
  15. border.color: "#c0bfbf"
  16. gradient: Gradient {
  17. GradientStop {
  18. position: 0
  19. color: "#5e5959"
  20. }
  21. GradientStop {
  22. position: 0.5
  23. color: "#b7b6b6"
  24. }
  25. GradientStop {
  26. position: 1
  27. color: "#000000"
  28. }
  29. }
  30. Image {
  31. id: thumbImage
  32. x: 13
  33. y: 12
  34. width: 98
  35. height: 80
  36. anchors.centerIn: parent
  37. smooth: true
  38. source: imageSource
  39. onProgressChanged:
  40. {
  41. loadingImage.opacity = 1-thumbImage.progress;
  42. }
  43. }
  44. Image {
  45. id: thumbImageGloss
  46. x: 13
  47. y: 12
  48. width: 94
  49. height: 77
  50. z: 2
  51. opacity: 0.83
  52. source: "images/gloss.png"
  53. smooth: true
  54. }
  55. Image {
  56. id: loadingImage
  57. anchors.horizontalCenter: parent.horizontalCenter
  58. anchors.verticalCenter: parent.verticalCenter
  59. width: 30
  60. height: 30
  61. z: 2
  62. opacity: 1
  63. source: "images/loading.png"
  64. smooth: true
  65. }
  66. }
  67. Rectangle {
  68. id: rectangle2
  69. x: 3
  70. y: 3
  71. width: 10
  72. height: 10
  73. color: "#363434"
  74. radius: 3
  75. }
  76. Rectangle {
  77. id: rectangle3
  78. x: 20
  79. y: 3
  80. width: 10
  81. height: 10
  82. color: "#363434"
  83. radius: 3
  84. }
  85. Rectangle {
  86. id: rectangle4
  87. x: 37
  88. y: 3
  89. width: 10
  90. height: 10
  91. color: "#363434"
  92. radius: 3
  93. }
  94. Rectangle {
  95. id: rectangle5
  96. x: 54
  97. y: 3
  98. width: 10
  99. height: 10
  100. color: "#363434"
  101. radius: 3
  102. }
  103. Rectangle {
  104. id: rectangle6
  105. x: 71
  106. y: 3
  107. width: 10
  108. height: 10
  109. color: "#363434"
  110. radius: 3
  111. }
  112. Rectangle {
  113. id: rectangle7
  114. x: 88
  115. y: 3
  116. width: 10
  117. height: 10
  118. color: "#363434"
  119. radius: 3
  120. }
  121. Rectangle {
  122. id: rectangle8
  123. x: 105
  124. y: 3
  125. width: 10
  126. height: 10
  127. color: "#363434"
  128. radius: 3
  129. }
  130. Rectangle {
  131. id: rectangle9
  132. x: 3
  133. y: 121
  134. width: 10
  135. height: 10
  136. color: "#363434"
  137. radius: 3
  138. }
  139. Rectangle {
  140. id: rectangle10
  141. x: 20
  142. y: 121
  143. width: 10
  144. height: 10
  145. color: "#363434"
  146. radius: 3
  147. }
  148. Rectangle {
  149. id: rectangle11
  150. x: 37
  151. y: 121
  152. width: 10
  153. height: 10
  154. color: "#363434"
  155. radius: 3
  156. }
  157. Rectangle {
  158. id: rectangle12
  159. x: 54
  160. y: 121
  161. width: 10
  162. height: 10
  163. color: "#363434"
  164. radius: 3
  165. }
  166. Rectangle {
  167. id: rectangle13
  168. x: 71
  169. y: 121
  170. width: 10
  171. height: 10
  172. color: "#363434"
  173. radius: 3
  174. }
  175. Rectangle {
  176. id: rectangle14
  177. x: 88
  178. y: 121
  179. width: 10
  180. height: 10
  181. color: "#363434"
  182. radius: 3
  183. }
  184. Rectangle {
  185. id: rectangle15
  186. x: 105
  187. y: 121
  188. width: 10
  189. height: 10
  190. color: "#363434"
  191. radius: 3
  192. }
  193. }