@@ -31,8 +31,6 @@ PreviewWidget {
31 implicitHeight: paymentButton.implicitHeight
31 implicitHeight: paymentButton.implicitHeight
32 implicitWidth: paymentButton.implicitWidth
32 implicitWidth: paymentButton.implicitWidth
34− property bool processActive: false
37 id: paymentButton
35 id: paymentButton
38 objectName: "paymentButton"
36 objectName: "paymentButton"
@@ -43,11 +41,10 @@ PreviewWidget {
43 paymentClient.start();
41 paymentClient.start();
44 root.processActive = true;
42 root.processActive = true;
46− enabled: !root.processActive
47 anchors.right: parent.right
44 anchors.right: parent.right
48 width: (root.width - units.gu(1)) / 2
45 width: (root.width - units.gu(1)) / 2
49− opacity: root.processActive ? 0 : 1
46+ visible: opacity == 0 ? false : true
50− Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.SlowDuration}}
47+ Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.FastDuration}}
52 Payments {
49 Payments {
53 id: paymentClient
50 id: paymentClient
@@ -69,10 +66,10 @@ PreviewWidget {
69 ProgressBar {
66 ProgressBar {
70 id: loadingBar
67 id: loadingBar
71 indeterminate: true
68 indeterminate: true
72− anchors.right: parent.right
69+ anchors.fill: paymentButton
73− width: (root.width - units.gu(1)) / 2
70+ opacity: 1 - paymentsButton.opacity
74− opacity: root.processActive ? 1 : 0
71+ visible: opacity == 0 ? false : true
76− Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.SlowDuration}}
73+ Behavior on opacity { PropertyAnimation {duration: UbuntuAnimation.FastDuration}}