summaryrefslogtreecommitdiff
path: root/qml/tapasboard
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-04 01:59:18 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-04 01:59:18 +0200
commit11b4152301b408c7a4f02a8b202fed9f5e1ee1e7 (patch)
tree162ab60099e7af348b6b7e2476707ea02a59ffe3 /qml/tapasboard
parent3c88a76b1be759d13097810877d6e990b3371726 (diff)
downloadtapasboard-11b4152301b408c7a4f02a8b202fed9f5e1ee1e7.tar.gz
tapasboard-11b4152301b408c7a4f02a8b202fed9f5e1ee1e7.zip
add topic replies counter bubbles
Diffstat (limited to 'qml/tapasboard')
-rw-r--r--qml/tapasboard/ForumPage.qml10
-rw-r--r--qml/tapasboard/MainPage.qml5
2 files changed, 14 insertions, 1 deletions
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