@@ -17,7 +17,7 @@
17import QtQuick 2.4
17import QtQuick 2.4
18import Ubuntu.Components 1.3
18import Ubuntu.Components 1.3
20−AbstractButton {
20+Item {
22 opacity: enabled ? 1 : 0.6
22 opacity: enabled ? 1 : 0.6
@@ -25,9 +25,11 @@ AbstractButton {
25 property string iconName
25 property string iconName
26 property color foregroundColor: "#000000"
26 property color foregroundColor: "#000000"
28 UbuntuShape {
30 UbuntuShape {
29 anchors.fill: parent
31 anchors.fill: parent
30− opacity: root.pressed ? 1 : 0
32+ opacity: mouseArea.pressed ? 1 : 0
31 Behavior on opacity {
33 Behavior on opacity {
32 UbuntuNumberAnimation {}
34 UbuntuNumberAnimation {}
@@ -60,4 +62,17 @@ AbstractButton {
60 UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration }
62 UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration }
70+ // Intentionally using onReleased here to increase the robustness against
71+ // sloppy presses. This often happens when entering a pin very quickly and
72+ // the numbers for the pin are far apart.