summaryrefslogtreecommitdiff
path: root/qml/tapasboard/BoardPage.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-04 15:49:31 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-04 15:49:31 +0200
commitd8fcff1a2d6eb61c97c44790dbdb920ba9f52980 (patch)
tree49df7f1e07e34061301ad5944a1807feba24b526 /qml/tapasboard/BoardPage.qml
parent11b4152301b408c7a4f02a8b202fed9f5e1ee1e7 (diff)
downloadtapasboard-d8fcff1a2d6eb61c97c44790dbdb920ba9f52980.tar.gz
tapasboard-d8fcff1a2d6eb61c97c44790dbdb920ba9f52980.zip
add showing unread posts
Diffstat (limited to 'qml/tapasboard/BoardPage.qml')
-rw-r--r--qml/tapasboard/BoardPage.qml106
1 files changed, 0 insertions, 106 deletions
diff --git a/qml/tapasboard/BoardPage.qml b/qml/tapasboard/BoardPage.qml
deleted file mode 100644
index 7efc6db..0000000
--- a/qml/tapasboard/BoardPage.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-import QtQuick 1.1
-import com.nokia.meego 1.1
-import com.nokia.extras 1.1
-import com.javispedro.tapasboard 1.0
-
-Page {
- id: boardPage
-
- anchors.leftMargin: UiConstants.DefaultMargin
- anchors.rightMargin: UiConstants.DefaultMargin
-
- property Board board : null;
- property int forumId;
-
- tools: ToolBarLayout {
- ToolIcon {
- platformIconId: "toolbar-back"
- onClicked: pageStack.pop()
- }
- ToolIcon {
- platformIconId: board.busy ? "toolbar-cancle" : "toolbar-refresh"
- onClicked: {
- if (board.busy) {
- board.cancelAllActions();
- } else {
- boardModel.refresh();
- }
- }
- }
- }
-
- ListView {
- id: forumsView
- anchors.fill: parent
- model: BoardModel {
- id: boardModel
- board: boardPage.board
- forumId: boardPage.forumId
- }
- section.criteria: ViewSection.FullString
- section.property: "category"
- section.delegate: GroupHeader {
- width: parent.width
- text: section
- }
-
- delegate: EmptyListDelegate {
- id: forumItem
-
- height: Math.max(forumItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault)
-
- Column {
- id: forumItemColumn
- anchors.left: parent.left
- anchors.right: forumItemImage.left
- anchors.verticalCenter: parent.verticalCenter
-
- Text {
- text: model.title
- width: parent.width
- font: UiConstants.TitleFont
- }
-
- Text {
- text: model.description
- width: parent.width
- font: UiConstants.SubtitleFont
- wrapMode: Text.Wrap
- visible: text != ""
- }
- }
-
- Image {
- id: forumItemImage
- source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "")
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
- }
-
- onClicked: {
- if (model.subOnly) {
- pageStack.push(Qt.resolvedUrl("BoardPage.qml"), {
- board: boardPage.board,
- forumId: model.forumId
- });
- } else {
- pageStack.push(Qt.resolvedUrl("ForumPage.qml"), {
- board: boardPage.board,
- forumId: model.forumId
- });
- }
- }
- }
- }
-
- ScrollDecorator {
- flickableItem: forumsView
- }
-
- BusyIndicator {
- anchors.centerIn: parent
- platformStyle: BusyIndicatorStyle { size: "large" }
- visible: forumsView.count == 0 && board.busy
- running: visible
- }
-}