Changeset 03f00a


Ignore:
Timestamp:
01/30/12 12:53:07 (4 months ago)
Author:
Micke Prag <micke.prag@…>
Branches:
('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
Children:
924fe1cf201d49ed5d5bc5dbbdb218a64a15ed98
Parents:
e7a2e9dc768453f01d356d4ecb380c7ed6bf007e
git-author:
Micke Prag <micke.prag@telldus.se>2012-01-30 12:53:07+01:00
git-committer:
Micke Prag <micke.prag@telldus.se>2012-01-30 12:53:07+01:00
Message:

Changed graphics on deletebutton, see #165

Location:
telldus-gui/Plugins/Sensors
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • telldus-gui/Plugins/Sensors/CMakeLists.txt

    r394270 r03f00a  
    2525 
    2626SET( Plugin_EXTRA 
     27        btn_action_remove.png 
    2728        header_bg.png 
    2829        icon.png 
  • telldus-gui/Plugins/Sensors/SensorView.qml

    r4ccb9b r03f00a  
    4141                        onTextChanged: modelData.name = text 
    4242                } 
    43  
    44                 Text{ 
     43                Item { 
     44                        height: 40 
     45                        width: deleteImg.width 
    4546                        anchors.right: sensorid.left 
     47                        anchors.rightMargin: 15 
    4648                        visible: sensorViewItem.state == "EDIT" 
    47                         height: 40 
    48                         verticalAlignment: Text.AlignVCenter 
    49                         text: "Delete" 
    50                         font.underline: true 
    51                         color: "#004275" 
    52                         width: 50 
    53                         MouseArea{ 
    54                                 anchors.fill: parent 
    55                                 onClicked: { 
    56                                         main.focus = true 
    57                                         confirmDeletion.visible = true; 
     49                        Image { 
     50                                id: deleteImg 
     51                                anchors.centerIn: parent 
     52                                source: "btn_action_remove.png" 
     53                                MouseArea{ 
     54                                        anchors.fill: parent 
     55                                        onClicked: { 
     56                                                main.focus = true 
     57                                                confirmDeletion.visible = true; 
     58                                        } 
    5859                                } 
    5960                        } 
Note: See TracChangeset for help on using the changeset viewer.