Add inputMethodHints in the server settings dialog

pull/1/head
Grégory Oestreicher 2016-12-16 16:24:07 +01:00
parent ca804b30f2
commit dedbab9838
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,7 @@ Dialog {
label: qsTr( "URL" ) label: qsTr( "URL" )
placeholderText: qsTr( "Server URL" ) placeholderText: qsTr( "Server URL" )
text: serverSettings.url text: serverSettings.url
inputMethodHints: Qt.ImhUrlCharactersOnly
EnterKey.enabled: text.length > 0 EnterKey.enabled: text.length > 0
EnterKey.onClicked: userField.focus = true EnterKey.onClicked: userField.focus = true
} }
@ -98,6 +99,7 @@ Dialog {
label: qsTr( "Login" ) label: qsTr( "Login" )
placeholderText: qsTr( "User Login" ) placeholderText: qsTr( "User Login" )
text: serverSettings.user text: serverSettings.user
inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase
EnterKey.enabled: text.length > 0 EnterKey.enabled: text.length > 0
EnterKey.onClicked: passwordField.focus = true EnterKey.onClicked: passwordField.focus = true
} }
@ -117,6 +119,7 @@ Dialog {
label: qsTr( "Client ID" ) label: qsTr( "Client ID" )
placeholderText: qsTr( "Client ID" ) placeholderText: qsTr( "Client ID" )
text: serverSettings.clientId text: serverSettings.clientId
inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase | Qt.ImhSensitiveData
EnterKey.enabled: text.length > 0 EnterKey.enabled: text.length > 0
EnterKey.onClicked: clientSecretField.focus = true EnterKey.onClicked: clientSecretField.focus = true
} }
@ -127,6 +130,7 @@ Dialog {
label: qsTr( "Client Secret" ) label: qsTr( "Client Secret" )
placeholderText: qsTr( "Client Secret" ) placeholderText: qsTr( "Client Secret" )
text: serverSettings.clientSecret text: serverSettings.clientSecret
inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase | Qt.ImhSensitiveData
} }
} }
} }