diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-01 20:46:39 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-01 20:46:39 +0200 |
commit | a6e64fbf9404b201b04fbd1ab4b959a18d8f83a9 (patch) | |
tree | 6b97b6ac14716dbe51cb105819abde3e36ffd465 /qml/tapasboard/EmptyListDelegate.qml | |
parent | 5ef8b38e55c1883224fe1f01f47aba45b7b42666 (diff) | |
download | tapasboard-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.qml | 29 |
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(); + } + } +} |