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
|
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
|
INCLUDEPATH += /Users/nicd/SailfishOS/mersdk/targets/SailfishOS-armv7hl/usr/include/c++/4.6.4
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,10 @@ Dialog {
|
||||||
placeholderText: "Connection name"
|
placeholderText: "Connection name"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
onTextChanged: setCanAccept();
|
onTextChanged: setCanAccept();
|
||||||
|
|
||||||
|
EnterKey.enabled: text.length > 0
|
||||||
|
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||||
|
EnterKey.onClicked: hostField.focus = true
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
@ -127,6 +131,10 @@ Dialog {
|
||||||
placeholderText: "Hostname"
|
placeholderText: "Hostname"
|
||||||
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
|
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
|
||||||
onTextChanged: setCanAccept();
|
onTextChanged: setCanAccept();
|
||||||
|
|
||||||
|
EnterKey.enabled: text.length > 0
|
||||||
|
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||||
|
EnterKey.onClicked: portField.focus = true
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
|
@ -141,6 +149,10 @@ Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
onTextChanged: setCanAccept();
|
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
|
width: parent.width
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
onTextChanged: setCanAccept();
|
onTextChanged: setCanAccept();
|
||||||
|
|
||||||
|
EnterKey.enabled: text.length > 0
|
||||||
|
EnterKey.iconSource: "image://theme/icon-m-enter-next"
|
||||||
|
EnterKey.onClicked: securityField.focus = true
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox {
|
ComboBox {
|
||||||
|
|
Loading…
Reference in a new issue