summaryrefslogtreecommitdiff
path: root/qml/tapasboard/ForumPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/tapasboard/ForumPage.qml')
-rw-r--r--qml/tapasboard/ForumPage.qml28
1 files changed, 27 insertions, 1 deletions
diff --git a/qml/tapasboard/ForumPage.qml b/qml/tapasboard/ForumPage.qml
index a70fe74..6e39fe2 100644
--- a/qml/tapasboard/ForumPage.qml
+++ b/qml/tapasboard/ForumPage.qml
@@ -28,12 +28,38 @@ Page {
boardUrl: forumPage.boardUrl
forumId: forumPage.forumId
}
- delegate: ListDelegate {
+ delegate: EmptyListDelegate {
+ id: topicItem
+
+ height: Math.max(topicItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault)
+
+ Column {
+ id: topicItemColumn
+ anchors.left: parent.left
+ anchors.right: topicItemImage.left
+ anchors.verticalCenter: parent.verticalCenter
+
+ Text {
+ text: model.title
+ width: parent.width
+ font: UiConstants.TitleFont
+ wrapMode: Text.Wrap
+ }
+ }
+
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("TopicPage.qml"), {
+ boardUrl: forumPage.boardUrl,
+ topicId: model.topicId
+ });
+ }
}
}