From 427004acc6a80004f69c6ce059667465023269a9 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 2 Apr 2013 00:51:58 +0200 Subject: parse bbcode, show usernames, .... --- qml/tapasboard/TopicPage.qml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'qml') 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) } } } -- cgit v1.2.3