diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-09-04 17:16:38 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-09-04 17:16:38 +0200 |
| commit | 83ea36393222208411932615bc59ad9e882ccd8d (patch) | |
| tree | d18c571ad374fa120eb5affe37cd97f8925dc50c /components/IconButton.qml | |
| parent | 6d09555cd42de09d3c8049865af34c0b358335f3 (diff) | |
| parent | b8da85d0a4e6ec0f7b2f39ec869efbca9c701984 (diff) | |
| download | monzero-gui-83ea36393222208411932615bc59ad9e882ccd8d.tar.gz monzero-gui-83ea36393222208411932615bc59ad9e882ccd8d.tar.xz monzero-gui-83ea36393222208411932615bc59ad9e882ccd8d.zip | |
Merge pull request #846
b8da85d Fix IconButton (MaxXor)
Diffstat (limited to 'components/IconButton.qml')
| -rw-r--r-- | components/IconButton.qml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/components/IconButton.qml b/components/IconButton.qml index eeb80267..042439f1 100644 --- a/components/IconButton.qml +++ b/components/IconButton.qml @@ -50,23 +50,23 @@ Item { z: 100 } -// MouseArea { -// id: buttonArea -// anchors.fill: parent + MouseArea { + id: buttonArea + anchors.fill: parent -// onPressed: { -// buttonImage.x = buttonImage.x + 2 -// buttonImage.y = buttonImage.y + 2 -// } -// onReleased: { -// buttonImage.x = buttonImage.x - 2 -// buttonImage.y = buttonImage.y - 2 -// } + onPressed: { + buttonImage.x = buttonImage.x + 2 + buttonImage.y = buttonImage.y + 2 + } + onReleased: { + buttonImage.x = buttonImage.x - 2 + buttonImage.y = buttonImage.y - 2 + } -// onClicked: { -// parent.clicked(mouse) -// } -// } + onClicked: { + parent.clicked(mouse) + } + } } |
