diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 00:51:58 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-02 00:51:58 +0200 |
commit | 427004acc6a80004f69c6ce059667465023269a9 (patch) | |
tree | bfa65471cc6411225016def30813623fdbc63f05 /qml | |
parent | 28bb9f9ee55b4899204bb9f860f2cda6f90b4806 (diff) | |
download | tapasboard-427004acc6a80004f69c6ce059667465023269a9.tar.gz tapasboard-427004acc6a80004f69c6ce059667465023269a9.zip |
parse bbcode, show usernames, ....
Diffstat (limited to 'qml')
-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) } } } |