From eaa54d96d0ce1f385a2de6f5fbc32d25d3866548 Mon Sep 17 00:00:00 2001 From: Dag Heyman Date: Wed, 15 Mar 2017 10:09:37 +0100 Subject: [PATCH] Update no QR code found dialog --- qml/AddCredential.qml | 6 +----- qml/AddCredentialSlot.qml | 6 +----- qml/NoQrDialog.qml | 10 ++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 qml/NoQrDialog.qml diff --git a/qml/AddCredential.qml b/qml/AddCredential.qml index ff292470..ea220a39 100644 --- a/qml/AddCredential.qml +++ b/qml/AddCredential.qml @@ -148,12 +148,8 @@ DefaultDialog { } } - MessageDialog { + NoQrDialog { id: noQr - icon: StandardIcon.Warning - title: qsTr("No QR code found") - text: qsTr("Could not find a QR code.") - standardButtons: StandardButton.Ok } MessageDialog { diff --git a/qml/AddCredentialSlot.qml b/qml/AddCredentialSlot.qml index 8de829c5..b4516871 100644 --- a/qml/AddCredentialSlot.qml +++ b/qml/AddCredentialSlot.qml @@ -90,12 +90,8 @@ DefaultDialog { } } - MessageDialog { + NoQrDialog { id: noQr - icon: StandardIcon.Warning - title: qsTr("No QR code found") - text: qsTr("Could not find a QR code.") - standardButtons: StandardButton.Ok } MessageDialog { diff --git a/qml/NoQrDialog.qml b/qml/NoQrDialog.qml new file mode 100644 index 00000000..ce8e28d4 --- /dev/null +++ b/qml/NoQrDialog.qml @@ -0,0 +1,10 @@ +import QtQuick 2.5 +import QtQuick.Dialogs 1.2 + +MessageDialog { + id: noQr + icon: StandardIcon.Warning + title: qsTr("No QR code found") + text: qsTr("Could not find a QR code. Make sure the QR code is fully visible on the screen.") + standardButtons: StandardButton.Ok +}