MovieList.qml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. property string path: "images/"
  52. ListElement {
  53. movie: "Casablanca"
  54. director: "Michael Curtiz"
  55. length: 6120
  56. year: 1942
  57. cover: "images/casablanca.jpeg"
  58. label: "Casablanca"
  59. value: "0"
  60. selected: false
  61. }
  62. ListElement {
  63. movie: "Dark Knight"
  64. director: "Christopher Nolan"
  65. length: 9120
  66. year: 2008
  67. cover: "images/dark_knight.jpg"
  68. label: "Dark Knight"
  69. value: "1"
  70. selected: false
  71. }
  72. ListElement {
  73. movie: "Edward the Scissorhands"
  74. director: "Tim Burton"
  75. length: 6300
  76. year: 1990
  77. cover: "images/edward.jpg"
  78. label: "Edward the Scissorhands"
  79. value: "2"
  80. selected: false
  81. }
  82. ListElement {
  83. movie: "Lord of the Rings: Fellowship of the Ring"
  84. director: "Peter Jackson"
  85. length: 10680
  86. year: 2001
  87. cover: "images/fellowship_of_the_ring.jpg"
  88. label: "Lord of the Rings: Fellowship of the Ring"
  89. value: "3"
  90. selected: false
  91. }
  92. ListElement {
  93. movie: "Pulp Fiction"
  94. director: "Quentin Tarantino"
  95. length: 9240
  96. year: 1994
  97. cover: "images/pulpfiction.jpg"
  98. label: "Pulp Fiction"
  99. value: "4"
  100. selected: false
  101. }
  102. ListElement {
  103. movie: "The Lion King"
  104. director: "Roger Allers & Rob Minkoff"
  105. length: 5340
  106. year: 1994
  107. cover: "images/lionking.jpg"
  108. label: "The Lion King"
  109. value: "5"
  110. selected: false
  111. }
  112. }