a7cf7f87b2967ccb2b0e81750c1050fdc0e50584
[quicknewsreader] / qml / QuickNewsReader / content / view / News.qml
1 import QtQuick 1.0
2
3 Item {
4     id: newsRect
5     width: window.width
6
7     ListView {
8         x: 0; y: 0
9         id: list
10         width: newsRect.width; height: window.height
11         model: currentSource.listModels[componentDepth-1]
12         delegate: NewsDelegate { }
13         highlight: Rectangle { color: "steelblue" }
14         highlightMoveDuration: 600
15     }
16     ScrollBar { scrollArea: list; height: list.height; width: 8; anchors.right: list.right }
17
18     Component.onCompleted: list.currentIndex = -1
19 }