diff options
Diffstat (limited to 'qml/tapasboard')
-rw-r--r-- | qml/tapasboard/TopicPage.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/qml/tapasboard/TopicPage.qml b/qml/tapasboard/TopicPage.qml index 9a305f8..d3b2a35 100644 --- a/qml/tapasboard/TopicPage.qml +++ b/qml/tapasboard/TopicPage.qml @@ -28,6 +28,13 @@ Page { boardUrl: topicPage.boardUrl topicId: topicPage.topicId } + section.property: "humanDate" + section.criteria: ViewSection.FullString + section.delegate: GroupHeader { + width: parent.width + text: section + } + delegate: Item { id: postItem @@ -49,19 +56,43 @@ Page { anchors.right: parent.right anchors.margins: UiConstants.DefaultMargin anchors.verticalCenter: parent.verticalCenter + spacing: 2 + + Item { + width: parent.width + height: childrenRect.height + + Text { + anchors.top: parent.top + anchors.left: parent.left + text: model.userName + font: UiConstants.SmallTitleFont + textFormat: Text.PlainText + } + Text { + anchors.top: parent.top + anchors.right: parent.right + text: model.humanTime + font: UiConstants.SubtitleFont + textFormat: Text.PlainText + } + } Text { text: model.title width: parent.width font: UiConstants.TitleFont visible: text != "" + textFormat: Text.PlainText } Text { text: model.content width: parent.width font: UiConstants.SubtitleFont + textFormat: Text.RichText wrapMode: Text.Wrap + onLinkActivated: Qt.openUrlExternally(link) } } } |