summaryrefslogtreecommitdiff
path: root/qml/tapasboard/MainPage.qml
blob: de3240a5f3703c27ecb020b8a6cb5e0c8acaf99d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import QtQuick 1.1
import com.nokia.meego 1.1
import com.nokia.extras 1.1
import com.javispedro.tapasboard 1.0

Page {
	ListView {
		id: favoritesView
		anchors.fill: parent
		model: FavoritesModel {

		}
		delegate: ListDelegate {
			id: favoriteItem

			Image {
				id: topicItemImage
				source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "")
				anchors.right: parent.right
				anchors.verticalCenter: parent.verticalCenter
			}

			onClicked: {
				pageStack.push(Qt.resolvedUrl("BoardPage.qml"), {
				                      boardUrl: model.boardUrl,
				                      rootForumId: 0
								  });
			}
		}
	}
}