summaryrefslogtreecommitdiff
path: root/qml/tapasboard/EmptyListDelegate.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-01 20:46:39 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-01 20:46:39 +0200
commita6e64fbf9404b201b04fbd1ab4b959a18d8f83a9 (patch)
tree6b97b6ac14716dbe51cb105819abde3e36ffd465 /qml/tapasboard/EmptyListDelegate.qml
parent5ef8b38e55c1883224fe1f01f47aba45b7b42666 (diff)
downloadtapasboard-a6e64fbf9404b201b04fbd1ab4b959a18d8f83a9.tar.gz
tapasboard-a6e64fbf9404b201b04fbd1ab4b959a18d8f83a9.zip
add support for actually reading topics
Diffstat (limited to 'qml/tapasboard/EmptyListDelegate.qml')
-rw-r--r--qml/tapasboard/EmptyListDelegate.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/qml/tapasboard/EmptyListDelegate.qml b/qml/tapasboard/EmptyListDelegate.qml
new file mode 100644
index 0000000..9a9d63d
--- /dev/null
+++ b/qml/tapasboard/EmptyListDelegate.qml
@@ -0,0 +1,29 @@
+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();
+ }
+ }
+}