applicationList.qml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import Qt 4.7
  2. import ApplicationStarter 1.0
  3. Rectangle {
  4. id: root
  5. width: 864
  6. height: 480
  7. Starter {
  8. id: starter
  9. }
  10. Rectangle {
  11. anchors.centerIn: parent
  12. rotation: -90
  13. width: 480
  14. height: 864
  15. color: "#05264A"
  16. smooth: true
  17. //Spinner
  18. AnimatedImage {
  19. paused: !starter.starting
  20. visible: starter.starting
  21. anchors.centerIn: parent
  22. source: "images/spinner_100.gif"
  23. }
  24. //List of applications
  25. ListView {
  26. id:list
  27. enabled: !starter.starting
  28. opacity: starter.starting?0:1
  29. anchors {
  30. top: parent.top
  31. topMargin: 10
  32. bottom: parent.bottom
  33. bottomMargin: 10
  34. horizontalCenter: parent.horizontalCenter
  35. }
  36. width: 450
  37. spacing: 10
  38. model: ApplicationModel {}
  39. delegate: ApplicationDelegate {
  40. id: listDelegate
  41. }
  42. //Animate opacity change
  43. Behavior on opacity {
  44. NumberAnimation {
  45. duration: 400
  46. }
  47. }
  48. }
  49. }
  50. }