QuiaEntryDelegate.qml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import Qt 4.7
  2. Rectangle {
  3. id: rectangle1
  4. width: 284
  5. height: 106
  6. radius: 7
  7. gradient: Gradient {
  8. GradientStop {
  9. position: 0
  10. color: "#d5d2d2"
  11. }
  12. GradientStop {
  13. position: 0.99
  14. color: "#7e7b7b"
  15. }
  16. }
  17. border.color: "#7c7a7a"
  18. property string entryTitle
  19. //property string entryDescription
  20. property string entryDate
  21. property color backColor
  22. property string iconSource
  23. Image {
  24. id: sportLogo
  25. x: 14
  26. y: 12
  27. //source: "sports_icons/sport1.png"
  28. height: 44
  29. anchors.verticalCenterOffset: -19
  30. anchors.verticalCenter: parent.verticalCenter
  31. z: 3
  32. width: 43
  33. source: iconSource
  34. //mapSportIcon(entryTitle)
  35. }
  36. Text {
  37. id: textEntryTitle
  38. x: 72
  39. y: 12
  40. width: 200
  41. height: 40
  42. text: entryTitle
  43. wrapMode: Text.WrapAtWordBoundaryOrAnywhere
  44. style: Text.Normal
  45. font.bold: false
  46. font.pointSize: 12
  47. z: 3
  48. }
  49. Text {
  50. id: textEntryDate
  51. x: 72
  52. y: 63
  53. width: 200
  54. height: 40
  55. color: "#07314b"
  56. text: "Date: " + entryDate
  57. wrapMode: Text.WrapAtWordBoundaryOrAnywhere
  58. z: 3
  59. font.strikeout: false
  60. font.bold: false
  61. styleColor: "#b8e4f1"
  62. style: Text.Normal
  63. font.pointSize: 10
  64. font.family: "Tahoma"
  65. }
  66. Image {
  67. id: imageStripes
  68. x: 0
  69. y: 0
  70. width: 284
  71. height: 106
  72. clip: false
  73. opacity: 0.11
  74. smooth: false
  75. fillMode: Image.Tile
  76. source: "images/stripes.png"
  77. }
  78. Image {
  79. id: imageGloss
  80. opacity: 0.37
  81. anchors.fill: parent
  82. smooth: false
  83. z: 2
  84. source: "images/gloss.png"
  85. }
  86. }