From 11b4152301b408c7a4f02a8b202fed9f5e1ee1e7 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 4 Apr 2013 01:59:18 +0200 Subject: add topic replies counter bubbles --- qml/tapasboard/ForumPage.qml | 10 +++++++++- qml/tapasboard/MainPage.qml | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'qml') diff --git a/qml/tapasboard/ForumPage.qml b/qml/tapasboard/ForumPage.qml index aed65a0..96b8082 100644 --- a/qml/tapasboard/ForumPage.qml +++ b/qml/tapasboard/ForumPage.qml @@ -45,7 +45,7 @@ Page { Column { id: topicItemColumn anchors.left: parent.left - anchors.right: topicItemImage.left + anchors.right: topicRepliesCount.left anchors.verticalCenter: parent.verticalCenter Text { @@ -56,6 +56,14 @@ Page { } } + CountBubble { + id: topicRepliesCount + anchors.right: topicItemImage.left + anchors.verticalCenter: parent.verticalCenter + value: model.numReplies + visible: value > 0 + } + Image { id: topicItemImage source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "") diff --git a/qml/tapasboard/MainPage.qml b/qml/tapasboard/MainPage.qml index f94b505..e0e8fb8 100644 --- a/qml/tapasboard/MainPage.qml +++ b/qml/tapasboard/MainPage.qml @@ -4,6 +4,11 @@ import com.nokia.extras 1.1 import com.javispedro.tapasboard 1.0 Page { + id: mainPage + + anchors.leftMargin: UiConstants.DefaultMargin + anchors.rightMargin: UiConstants.DefaultMargin + ListView { id: favoritesView anchors.fill: parent -- cgit v1.2.3