3 import "content/modelimpl"
4 import "content/modelitf"
8 //anchors.fill: parent // use this little trick to always adapt itself to the screen
9 width: 800; height: 480
11 property int currentSourceIndex: 0
13 property list<SourceModel> listSourceModel: [
15 GoogleReaderSourceModel{},
16 FavoriteFeedsSourceModel{},
20 property variant currentSource: listSourceModel[currentSourceIndex]
21 property bool loading: currentSource.loading
22 property ListModel windowViewsModel: viewsModel
23 property ListView windowViewsList: viewsList
28 ListElement { component: "content/view/Sources.qml"; componentDepth: 0 }
36 orientation: ListView.Horizontal
37 snapMode: ListView.SnapOneItem
38 flickDeceleration: 500
39 cacheBuffer: 1600 // so that the next delegate gets actually loaded...
40 preferredHighlightBegin: window.x
41 preferredHighlightEnd: window.width
42 highlightRangeMode: ListView.StrictlyEnforceRange
43 boundsBehavior: Flickable.StopAtBounds
51 viewsList.currentIndex = componentDepth
56 function showConfigDialog(index) {
57 configDialog.configModel = listSourceModel[index]
58 configDialog.state = "showSourceConfig"
69 id: quitButtonDelegate
71 width: parent.width; height: 60
74 font { family: "Helvetica"; pixelSize: 16; bold: true }
76 left: parent.left; leftMargin: 15
77 verticalCenter: parent.verticalCenter