summaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/BoardPage.qml (renamed from qml/tapasboard/BoardPage.qml)2
-rw-r--r--qml/EmptyListDelegate.qml35
-rw-r--r--qml/ForumPage.qml (renamed from qml/tapasboard/ForumPage.qml)2
-rw-r--r--qml/GroupHeader.qml (renamed from qml/tapasboard/GroupHeader.qml)0
-rw-r--r--qml/MainPage.qml (renamed from qml/tapasboard/MainPage.qml)0
-rw-r--r--qml/TopicPage.qml (renamed from qml/tapasboard/TopicPage.qml)0
-rw-r--r--qml/main.qml (renamed from qml/tapasboard/main.qml)0
-rw-r--r--qml/tapasboard/EmptyListDelegate.qml29
8 files changed, 39 insertions, 29 deletions
diff --git a/qml/tapasboard/BoardPage.qml b/qml/BoardPage.qml
index 7efc6db..ca988f3 100644
--- a/qml/tapasboard/BoardPage.qml
+++ b/qml/BoardPage.qml
@@ -49,6 +49,8 @@ Page {
height: Math.max(forumItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault)
+ unread: model.unread
+
Column {
id: forumItemColumn
anchors.left: parent.left
diff --git a/qml/EmptyListDelegate.qml b/qml/EmptyListDelegate.qml
new file mode 100644
index 0000000..71fa3dc
--- /dev/null
+++ b/qml/EmptyListDelegate.qml
@@ -0,0 +1,35 @@
+import QtQuick 1.1
+import com.nokia.meego 1.1
+
+Item {
+ id: listItem
+
+ signal clicked
+ property alias pressed: mouseArea.pressed
+ property bool unread: false
+
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.leftMargin: UiConstants.ButtonSpacing
+ height: UiConstants.ListItemHeightDefault
+
+ BorderImage {
+ id: background
+ anchors.fill: parent
+ anchors.leftMargin: -(UiConstants.DefaultMargin+parent.anchors.leftMargin)
+ anchors.rightMargin: -UiConstants.DefaultMargin
+ border { left: 22; right: 22; top: 22; bottom: 22; }
+ visible: pressed || unread
+ source: "image://theme/meegotouch" + (unread|(!unread&&!pressed)?"-unread-inbox":"")
+ + "-panel" + (theme.inverted?"-inverted":"")
+ + "-background" + (pressed?"-pressed":"")
+ }
+
+ MouseArea {
+ id: mouseArea;
+ anchors.fill: parent
+ onClicked: {
+ listItem.clicked();
+ }
+ }
+}
diff --git a/qml/tapasboard/ForumPage.qml b/qml/ForumPage.qml
index 96b8082..ee04e43 100644
--- a/qml/tapasboard/ForumPage.qml
+++ b/qml/ForumPage.qml
@@ -42,6 +42,8 @@ Page {
height: Math.max(topicItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault)
+ unread: model.unread
+
Column {
id: topicItemColumn
anchors.left: parent.left
diff --git a/qml/tapasboard/GroupHeader.qml b/qml/GroupHeader.qml
index 0350ee0..0350ee0 100644
--- a/qml/tapasboard/GroupHeader.qml
+++ b/qml/GroupHeader.qml
diff --git a/qml/tapasboard/MainPage.qml b/qml/MainPage.qml
index e0e8fb8..e0e8fb8 100644
--- a/qml/tapasboard/MainPage.qml
+++ b/qml/MainPage.qml
diff --git a/qml/tapasboard/TopicPage.qml b/qml/TopicPage.qml
index 689dce7..689dce7 100644
--- a/qml/tapasboard/TopicPage.qml
+++ b/qml/TopicPage.qml
diff --git a/qml/tapasboard/main.qml b/qml/main.qml
index 11a7e44..11a7e44 100644
--- a/qml/tapasboard/main.qml
+++ b/qml/main.qml
diff --git a/qml/tapasboard/EmptyListDelegate.qml b/qml/tapasboard/EmptyListDelegate.qml
deleted file mode 100644
index 9a9d63d..0000000
--- a/qml/tapasboard/EmptyListDelegate.qml
+++ /dev/null
@@ -1,29 +0,0 @@
-import QtQuick 1.1
-import com.nokia.meego 1.1
-
-Item {
- id: listItem
-
- signal clicked
- property alias pressed: mouseArea.pressed
-
- height: UiConstants.ListItemHeightDefault
- width: parent.width
-
- BorderImage {
- id: background
- anchors.fill: parent
- anchors.leftMargin: -UiConstants.DefaultMargin
- anchors.rightMargin: -UiConstants.DefaultMargin
- visible: pressed
- source: theme.inverted ? "image://theme/meegotouch-panel-inverted-background-pressed" : "image://theme/meegotouch-panel-background-pressed"
- }
-
- MouseArea {
- id: mouseArea;
- anchors.fill: parent
- onClicked: {
- listItem.clicked();
- }
- }
-}