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_EXTRA
|
||||
btn_action_remove.png
|
||||
header_bg.png
|
||||
icon.png
|
||||
icon_humidity.png
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
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