MusicList.qml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /**
  2. * Copyright © 2010 Digia Plc
  3. * Copyright © 2010 Nokia Corporation
  4. *
  5. * All rights reserved.
  6. *
  7. * Nokia and Nokia Connecting People are registered trademarks of
  8. * Nokia Corporation.
  9. * Java and all Java-based marks are trademarks or registered
  10. * trademarks of
  11. * Sun Microsystems, Inc. Other product and company names
  12. * mentioned herein may be
  13. * trademarks or trade names of their respective owners.
  14. *
  15. *
  16. * Subject to the conditions below, you may, without charge:
  17. *
  18. * · Use, copy, modify and/or merge copies of this software and
  19. * associated documentation files (the "Software")
  20. *
  21. * · Publish, distribute, sub-licence and/or sell new software
  22. * derived from or incorporating the Software.
  23. *
  24. *
  25. * This file, unmodified, shall be included with all copies or
  26. * substantial portions
  27. * of the Software that are distributed in source code form.
  28. *
  29. * The Software cannot constitute the primary value of any new
  30. * software derived
  31. * from or incorporating the Software.
  32. *
  33. * Any person dealing with the Software shall not misrepresent
  34. * the source of the Software.
  35. *
  36. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  37. * KIND, EXPRESS OR IMPLIED,
  38. * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  39. * MERCHANTABILITY, FITNESS FOR A
  40. * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  41. * AUTHORS OR COPYRIGHT
  42. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  43. * WHETHER IN AN ACTION
  44. * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  45. * CONNECTION WITH THE
  46. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47. */
  48. import Qt 4.7
  49. ListModel {
  50. id: model
  51. ListElement {
  52. artist: "Kraftwerk"
  53. album: "Tour De France"
  54. track: "Tour De France"
  55. length: 180
  56. year: 2010
  57. cover: "images/cover1.jpg"
  58. label: "Tour De France"
  59. value:"0"
  60. selected: false
  61. }
  62. ListElement {
  63. artist: "Kanye West"
  64. album: "Graduation"
  65. track: "Good Morning"
  66. length: 195
  67. year: 2007
  68. cover: "images/cover2.jpg"
  69. label: "Good Morning"
  70. value:"1"
  71. selected: false
  72. }
  73. ListElement {
  74. artist: "Keane"
  75. album: "Under The Iron Sea"
  76. track: "Is It Any Wonder?"
  77. length: 186
  78. year: 2006
  79. cover: "images/cover3.jpg"
  80. label: "Is It Any Wonder?"
  81. value:"2"
  82. selected: false
  83. }
  84. ListElement {
  85. artist: "Pink Floyd"
  86. album: "The Dark Side Of The Moon"
  87. track: "Time"
  88. length: 426
  89. year: 1973
  90. cover: "images/cover4.jpg"
  91. label: "Time"
  92. value:"3"
  93. selected: false
  94. }
  95. ListElement {
  96. artist: "The Beatles"
  97. album: "Abbey Road"
  98. track: "Here Comes the Sun"
  99. length: 186
  100. year: 1969
  101. cover: "images/cover5.jpg"
  102. label: "Here Comes the Sun"
  103. value:"4"
  104. selected: false
  105. }
  106. ListElement {
  107. artist: "Efterklang"
  108. album: "Under Giant Trees"
  109. track: "Falling Horses"
  110. length: 432
  111. year: 2007
  112. cover: "images/cover6.jpg"
  113. label: "Falling Horses"
  114. value:"5"
  115. selected: false
  116. }
  117. ListElement {
  118. artist: "The Autumn Film"
  119. album: "The Grey"
  120. track: "Sleep"
  121. length: 295
  122. year: 2010
  123. cover: "images/cover7.jpg"
  124. label: "Sleep"
  125. value:"6"
  126. selected: false
  127. }
  128. ListElement {
  129. artist: "Muse"
  130. album: "Black Holes & Revelations"
  131. track: "Knights of Cydonia"
  132. length: 366
  133. year: 2010
  134. cover: "images/cover8.jpg"
  135. label: "Knights of Cydonia"
  136. value:"7"
  137. selected: false
  138. }
  139. }