summaryrefslogtreecommitdiff
path: root/qml/EmptyListDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/EmptyListDelegate.qml')
-rw-r--r--qml/EmptyListDelegate.qml35
1 files changed, 35 insertions, 0 deletions
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();
+ }
+ }
+}