From 51964c4fd7f41e9b1a394d0787897d8cd9ba771e Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 2 Oct 2020 17:33:04 +0200 Subject: Clean up verification pages a bit --- .../qml/device-verification/DigitVerification.qml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'resources/qml/device-verification/DigitVerification.qml') diff --git a/resources/qml/device-verification/DigitVerification.qml b/resources/qml/device-verification/DigitVerification.qml index 241ccbd0..f3b1f5cf 100644 --- a/resources/qml/device-verification/DigitVerification.qml +++ b/resources/qml/device-verification/DigitVerification.qml @@ -43,15 +43,7 @@ Pane { Button { Layout.alignment: Qt.AlignLeft text: qsTr("They do not match!") - palette { - button: "white" - } - contentItem: Text { - text: parent.text - color: "black" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } + onClicked: { flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS); deviceVerificationList.remove(tran_id); @@ -64,17 +56,9 @@ Pane { Button { Layout.alignment: Qt.AlignRight text: qsTr("They match!") - palette { - button: "white" - } - contentItem: Text { - text: parent.text - color: "black" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } + onClicked: { stack.replace(awaitingVerificationConfirmation); flow.sendVerificationMac(); } } } } -} \ No newline at end of file +} -- cgit 1.5.1