diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/enginio/quick/socialtodos/Login.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/enginio/quick/socialtodos/Login.qml b/examples/enginio/quick/socialtodos/Login.qml index 997f9e3..652d30e 100644 --- a/examples/enginio/quick/socialtodos/Login.qml +++ b/examples/enginio/quick/socialtodos/Login.qml @@ -112,6 +112,7 @@ Rectangle { id: nameInput onAccepted: passwordInput.forceActiveFocus() placeholderText: "Username" + KeyNavigation.tab: passwordInput } TextField { @@ -119,6 +120,7 @@ Rectangle { onAccepted: login() placeholderText: "Password" echoMode: TextInput.Password + KeyNavigation.tab: loginButton } Row { @@ -128,17 +130,21 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.alignWhenCentered: true TouchButton { + id: loginButton text: "Login" baseColor: "#7a5" width: (parent.width - parent.spacing)/2 onClicked: login() enabled: enginioClient.authenticationState !== Enginio.Authenticating && nameInput.text.length && passwordInput.text.length + KeyNavigation.tab: registerButton } TouchButton { + id: registerButton text: "Register" onClicked: register() width: (parent.width - parent.spacing)/2 enabled: enginioClient.authenticationState !== Enginio.Authenticating && nameInput.text.length && passwordInput.text.length + KeyNavigation.tab: nameInput } } } |