diff options
Diffstat (limited to 'qml/tapasboard/ForumPage.qml')
-rw-r--r-- | qml/tapasboard/ForumPage.qml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/qml/tapasboard/ForumPage.qml b/qml/tapasboard/ForumPage.qml new file mode 100644 index 0000000..a70fe74 --- /dev/null +++ b/qml/tapasboard/ForumPage.qml @@ -0,0 +1,43 @@ +import QtQuick 1.1 +import com.nokia.meego 1.1 +import com.nokia.extras 1.1 +import com.javispedro.tapasboard 1.0 + +Page { + id: forumPage + + anchors.leftMargin: UiConstants.DefaultMargin + anchors.rightMargin: UiConstants.DefaultMargin + + property string boardUrl; + property int forumId; + + tools: ToolBarLayout { + ToolIcon { + id: backToolIcon + platformIconId: "toolbar-back" + anchors.left: parent.left + onClicked: pageStack.pop() + } + } + + ListView { + id: topicsView + anchors.fill: parent + model: ForumModel { + boardUrl: forumPage.boardUrl + forumId: forumPage.forumId + } + delegate: ListDelegate { + Image { + source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "") + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + } + } + } + + ScrollDecorator { + flickableItem: topicsView + } +} |