summaryrefslogtreecommitdiff
path: root/qml/tapasboard/EmptyListDelegate.qml
blob: 9a9d63d58d98a455dade1f4298550128e6ae9424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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();
        }
    }
}