diff options
Diffstat (limited to 'qml')
-rw-r--r-- | qml/TopicPage.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qml/TopicPage.qml b/qml/TopicPage.qml index 689dce7..9835a06 100644 --- a/qml/TopicPage.qml +++ b/qml/TopicPage.qml @@ -36,6 +36,11 @@ Page { id: topicModel board: topicPage.board topicId: topicPage.topicId + + onFirstUnreadPostChanged: { + postsView.positionViewAtIndex(firstUnreadPost, ListView.Beginning); + topicModel.markAsRead(); + } } section.property: "humanDate" section.criteria: ViewSection.FullString @@ -56,9 +61,13 @@ Page { height: postItemColumn.height + UiConstants.DefaultMargin anchors.centerIn: parent + visible: model.postId >= 0 color: "white" radius: 20 + border.width: model.unread ? 2 : 0 + border.color: "black" + Column { id: postItemColumn anchors.left: parent.left |