Changed graphics on deletebutton, see #165
This commit is contained in:
parent
e7a2e9dc76
commit
03f00a0fff
3 changed files with 16 additions and 14 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
BIN
telldus-gui/Plugins/Sensors/btn_action_remove.png
Normal file
BIN
telldus-gui/Plugins/Sensors/btn_action_remove.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
Add table
Add a link
Reference in a new issue