summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index 17b10e6..2071087 100644
--- a/main.qml
+++ b/main.qml
@@ -31,6 +31,9 @@ ApplicationWindow {
}
emailTextField {
placeholderText: "Coba: Hardware, Ladders, Measuring Tools, Safety Equipment, Hand Tools, Painting Supplies, atau Tool Storage"
+ validator: RegularExpressionValidator {
+ regularExpression: /[a-zA-Z0-9]+/
+ }
onTextChanged: if (!emailTextField.text || !loginButton.enabled)
loginButton.enabled = !loginButton.enabled
}