Add inputMethodHints in the server settings dialog
parent
ca804b30f2
commit
dedbab9838
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue