diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 15:49:31 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 15:49:31 +0200 |
commit | d8fcff1a2d6eb61c97c44790dbdb920ba9f52980 (patch) | |
tree | 49df7f1e07e34061301ad5944a1807feba24b526 /qml/MainPage.qml | |
parent | 11b4152301b408c7a4f02a8b202fed9f5e1ee1e7 (diff) | |
download | tapasboard-d8fcff1a2d6eb61c97c44790dbdb920ba9f52980.tar.gz tapasboard-d8fcff1a2d6eb61c97c44790dbdb920ba9f52980.zip |
add showing unread posts
Diffstat (limited to 'qml/MainPage.qml')
-rw-r--r-- | qml/MainPage.qml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/qml/MainPage.qml b/qml/MainPage.qml new file mode 100644 index 0000000..e0e8fb8 --- /dev/null +++ b/qml/MainPage.qml @@ -0,0 +1,39 @@ +import QtQuick 1.1 +import com.nokia.meego 1.1 +import com.nokia.extras 1.1 +import com.javispedro.tapasboard 1.0 + +Page { + id: mainPage + + anchors.leftMargin: UiConstants.DefaultMargin + anchors.rightMargin: UiConstants.DefaultMargin + + 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: { + var board = boardManager.getBoard(model.boardUrl, + model.loginUsername, + model.loginPassword); + pageStack.push(Qt.resolvedUrl("BoardPage.qml"), { + board: board, + forumId: board.rootForumId + }); + } + } + } +} |