add an ok button for server name changes
This commit is contained in:
parent
d743d01c20
commit
1c2fe1392c
@ -54,9 +54,14 @@ Page {
|
|||||||
text: qsTr("Server name")
|
text: qsTr("Server name")
|
||||||
}
|
}
|
||||||
TextField {
|
TextField {
|
||||||
|
id: nameTextField
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: Engine.basicConfiguration.serverName
|
text: Engine.basicConfiguration.serverName
|
||||||
onAccepted: Engine.basicConfiguration.serverName = text
|
}
|
||||||
|
Button {
|
||||||
|
text: qsTr("OK")
|
||||||
|
visible: nameTextField.displayText !== Engine.basicConfiguration.serverName
|
||||||
|
onClicked: Engine.basicConfiguration.serverName = nameTextField.displayText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user