From 73acbb68ae31a6553d3b0dd027fa3df3db8d868c Mon Sep 17 00:00:00 2001 From: Johan Ouwerkerk Date: Sun, 29 Sep 2019 12:57:07 +0200 Subject: [PATCH] Add the new base32 secret validator to the UI: attach it to the secret input field. --- src/contents/ui/main.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml index fd82cd8..64273a7 100644 --- a/src/contents/ui/main.qml +++ b/src/contents/ui/main.qml @@ -20,6 +20,7 @@ */ import Oath 1.0 +import Oath.Validators 1.0 as Validators import QtQuick 2.1 import QtQuick.Layouts 1.2 import QtQuick.Controls 2.0 as Controls @@ -184,6 +185,9 @@ Kirigami.ApplicationWindow { Controls.TextField { id: accountSecret Kirigami.FormData.label: "Secret key:" + validator: Validators.Base32SecretValidator { + id: secretValidator + } inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText } Controls.TextField {