From b8da85d0a4e6ec0f7b2f39ec869efbca9c701984 Mon Sep 17 00:00:00 2001 From: MaxXor Date: Thu, 31 Aug 2017 14:44:44 +0200 Subject: [PATCH] Fix IconButton --- components/IconButton.qml | 30 +++++++++++++++--------------- 1 file 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) + } + } }