From 042b51d183c6ea9ddfeccb7d301d3790b9db2261 Mon Sep 17 00:00:00 2001 From: Johan Ouwerkerk Date: Mon, 30 Sep 2019 21:07:03 +0200 Subject: [PATCH] Use the unsigned long long validator for the HOTP counter input field in the QML UI. --- src/contents/ui/main.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml index 8a48e95..7c49990 100644 --- a/src/contents/ui/main.qml +++ b/src/contents/ui/main.qml @@ -205,7 +205,9 @@ Kirigami.ApplicationWindow { id: counterField Kirigami.FormData.label: "Counter:" enabled: hotpRadio.checked - inputMask: "0009" + validator: Validators.HOTPCounterValidator { + id: counterValidator + } inputMethodHints: Qt.ImhDigitsOnly } /*