Customize enter keys in connection add dialog
This commit is contained in:
parent
87d26f6044
commit
b9e9c58848
2 changed files with 18 additions and 0 deletions
|
@ -50,5 +50,7 @@ HEADERS += \
|
|||
|
||||
QT += network
|
||||
|
||||
# This is needed on the dev machine to get Qt Creator intellisense working correctly
|
||||
# It should have no adverse effect onother machines, though
|
||||
INCLUDEPATH += /Users/nicd/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/c++/4.6.4
|
||||
|
||||
|
|
|
@ -115,6 +115,10 @@ Dialog {
|
|||
placeholderText: "Connection name"
|
||||
width: parent.width
|
||||
onTextChanged: setCanAccept();
|
||||
|
||||
EnterKey.enabled: text.length > 0
|
||||
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||
EnterKey.onClicked: hostField.focus = true
|
||||
}
|
||||
|
||||
Row {
|
||||
|
@ -127,6 +131,10 @@ Dialog {
|
|||
placeholderText: "Hostname"
|
||||
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
|
||||
onTextChanged: setCanAccept();
|
||||
|
||||
EnterKey.enabled: text.length > 0
|
||||
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||
EnterKey.onClicked: portField.focus = true
|
||||
}
|
||||
|
||||
TextField {
|
||||
|
@ -141,6 +149,10 @@ Dialog {
|
|||
}
|
||||
|
||||
onTextChanged: setCanAccept();
|
||||
|
||||
EnterKey.enabled: text.length > 0
|
||||
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||
EnterKey.onClicked: passwordField.focus = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,6 +162,10 @@ Dialog {
|
|||
width: parent.width
|
||||
echoMode: TextInput.Password
|
||||
onTextChanged: setCanAccept();
|
||||
|
||||
EnterKey.enabled: text.length > 0
|
||||
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||
EnterKey.onClicked: securityField.focus = true
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
|
|
Loading…
Reference in a new issue