@@ -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,6 +25,10 @@ AbstractButton {
25 property string iconName
25 property string iconName
26 property color foregroundColor: "#000000"
26 property color foregroundColor: "#000000"
28+ readonly property alias pressed: mouseArea.pressed
28 UbuntuShape {
32 UbuntuShape {
29 anchors.fill: parent
33 anchors.fill: parent
30 opacity: root.pressed ? 1 : 0
34 opacity: root.pressed ? 1 : 0
@@ -60,4 +64,17 @@ AbstractButton {
60 UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration }
64 UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration }
72+ // Intentionally using onReleased here to increase the robustness against
73+ // sloppy presses. This often happens when entering a pin very quickly and
74+ // the numbers for the pin are far apart.