Refactoring and model improvements
[quicknewsreader] / qml / QuickNewsReader / content / view / Sources.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     id: sourcesRect
5     width: 150; height: window.height
6     color: "#dfdfdf"
7
8     ListModel {
9         id: sourceList
10
11         ListElement {  }
12         ListElement {  }
13         ListElement {  }
14     }
15
16     ListView {
17         focus: true
18         id: sources
19         x: 0; y: 0
20         width: 150; height: window.height
21         currentIndex: currentSourceIndex
22         model: sourceList
23         footer: quitButtonDelegate
24         delegate: SourceDelegate {}
25         highlight: Rectangle { color: "steelblue" }
26         highlightMoveSpeed: 9999999
27     }
28     ScrollBar { scrollArea: sources; height: sources.height; width: 8; anchors.right: sources.right }
29
30     Component.onCompleted: sources.currentIndex = -1
31 }