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_PATH "com.telldus.sensors" )
SET( Plugin_EXTRA SET( Plugin_EXTRA
btn_action_remove.png
header_bg.png header_bg.png
icon.png icon.png
icon_humidity.png icon_humidity.png

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB