Changed graphics on deletebutton, see #165

This commit is contained in:
Micke Prag 2012-01-30 12:53:07 +01:00
parent e7a2e9dc76
commit 03f00a0fff
3 changed files with 16 additions and 14 deletions

View file

@ -24,6 +24,7 @@ SET( Plugin_MOC_HDRS
SET( Plugin_PATH "com.telldus.sensors" )
SET( Plugin_EXTRA
btn_action_remove.png
header_bg.png
icon.png
icon_humidity.png

View file

@ -40,21 +40,22 @@ Item{
placeholderText: 'Enter a name'
onTextChanged: modelData.name = text
}
Text{
anchors.right: sensorid.left
visible: sensorViewItem.state == "EDIT"
Item {
height: 40
verticalAlignment: Text.AlignVCenter
text: "Delete"
font.underline: true
color: "#004275"
width: 50
MouseArea{
anchors.fill: parent
onClicked: {
main.focus = true
confirmDeletion.visible = true;
width: deleteImg.width
anchors.right: sensorid.left
anchors.rightMargin: 15
visible: sensorViewItem.state == "EDIT"
Image {
id: deleteImg
anchors.centerIn: parent
source: "btn_action_remove.png"
MouseArea{
anchors.fill: parent
onClicked: {
main.focus = true
confirmDeletion.visible = true;
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB