diff options
| author | MaxXor <admin@maxxor.org> | 2017-08-31 14:44:44 +0200 |
|---|---|---|
| committer | MaxXor <admin@maxxor.org> | 2017-08-31 14:44:44 +0200 |
| commit | b8da85d0a4e6ec0f7b2f39ec869efbca9c701984 (patch) | |
| tree | 3c848fed10379dde50308130638d81cbe1819d63 /components/IconButton.qml | |
| parent | c68c31777693ae75b59c0d24c44195a97bbf0c1c (diff) | |
| download | monzero-gui-b8da85d0a4e6ec0f7b2f39ec869efbca9c701984.tar.gz monzero-gui-b8da85d0a4e6ec0f7b2f39ec869efbca9c701984.tar.xz monzero-gui-b8da85d0a4e6ec0f7b2f39ec869efbca9c701984.zip | |
Fix IconButton
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) + } + } } |
