diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 02:02:19 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 02:02:19 +0200 |
commit | 9f12671ee8dd38a130a16c9146001c9c2494d77c (patch) | |
tree | 7d52a44132c0b4ea3fb46c8e6a8baa7901473ec8 /qml/tapasboard/MainPage.qml | |
parent | 5f66a8e03f3a748d01e162d151c3a7e987899f09 (diff) | |
download | tapasboard-9f12671ee8dd38a130a16c9146001c9c2494d77c.tar.gz tapasboard-9f12671ee8dd38a130a16c9146001c9c2494d77c.zip |
read favorite boards from a .ini instead of hardcoding them
Diffstat (limited to 'qml/tapasboard/MainPage.qml')
-rw-r--r-- | qml/tapasboard/MainPage.qml | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/qml/tapasboard/MainPage.qml b/qml/tapasboard/MainPage.qml index 7337b12..de3240a 100644 --- a/qml/tapasboard/MainPage.qml +++ b/qml/tapasboard/MainPage.qml @@ -1,17 +1,31 @@ import QtQuick 1.1 -import com.nokia.meego 1.0 +import com.nokia.meego 1.1 +import com.nokia.extras 1.1 +import com.javispedro.tapasboard 1.0 Page { - tools: commonTools + ListView { + id: favoritesView + anchors.fill: parent + model: FavoritesModel { - Button { - anchors { - centerIn: parent - } - text: qsTr("Open board") - onClicked: pageStack.push(Qt.resolvedUrl("BoardPage.qml"), { - boardUrl: "http://support.tapatalk.com/mobiquo/mobiquo.php", - rootForumId: 0 - }) - } + } + 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 + }); + } + } + } } |