qml: override finish button text in ServerConnectWizard
This commit is contained in:
@@ -12,6 +12,7 @@ Wizard {
|
|||||||
enter: null // disable transition
|
enter: null // disable transition
|
||||||
|
|
||||||
wiz: Daemon.serverConnectWizard
|
wiz: Daemon.serverConnectWizard
|
||||||
|
finishButtonText: qsTr('Next')
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
var proxy = wizard_data['proxy']
|
var proxy = wizard_data['proxy']
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ ElDialog {
|
|||||||
property var wizard_data
|
property var wizard_data
|
||||||
property alias pages: pages
|
property alias pages: pages
|
||||||
property QtObject wiz
|
property QtObject wiz
|
||||||
|
property alias finishButtonText: finishButton.text
|
||||||
|
|
||||||
function doClose() {
|
function doClose() {
|
||||||
if (pages.currentIndex == 0)
|
if (pages.currentIndex == 0)
|
||||||
@@ -171,6 +172,7 @@ ElDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
id: finishButton
|
||||||
text: qsTr("Finish")
|
text: qsTr("Finish")
|
||||||
visible: pages.lastpage
|
visible: pages.lastpage
|
||||||
enabled: pages.pagevalid
|
enabled: pages.pagevalid
|
||||||
|
|||||||
Reference in New Issue
Block a user