Rename gotoPage to goToPage

This commit is contained in:
Lipu Fei 2019-03-22 10:21:17 +01:00
parent a8e2fcf5f5
commit 2b0e2d84bb
3 changed files with 5 additions and 5 deletions

View File

@ -204,7 +204,7 @@ Item
text: catalog.i18nc("@button", "Cancel") text: catalog.i18nc("@button", "Cancel")
width: UM.Theme.getSize("action_button").width width: UM.Theme.getSize("action_button").width
fixedWidthMode: true fixedWidthMode: true
onClicked: base.gotoPage("add_printer_by_selection") onClicked: base.goToPage("add_printer_by_selection")
} }
Cura.PrimaryButton Cura.PrimaryButton

View File

@ -67,7 +67,7 @@ Item
onAddByIpButtonClicked: onAddByIpButtonClicked:
{ {
base.gotoPage("add_printer_by_ip") base.goToPage("add_printer_by_ip")
} }
} }
} }
@ -148,7 +148,7 @@ Item
// TODO: implement machine actions // TODO: implement machine actions
// If we have created a machine, go to the last page, which is the "cloud" page. // If we have created a machine, go to the last page, which is the "cloud" page.
base.gotoPage("cloud") base.goToPage("cloud")
} }
} }
} }

View File

@ -33,7 +33,7 @@ Item
signal showNextPage() signal showNextPage()
signal showPreviousPage() signal showPreviousPage()
signal passLastPage() // Emitted when there is no more page to show signal passLastPage() // Emitted when there is no more page to show
signal gotoPage(string page_id) // Go to a specific page by the given page_id. signal goToPage(string page_id) // Go to a specific page by the given page_id.
onShowNextPage: onShowNextPage:
{ {
@ -54,7 +54,7 @@ Item
} }
} }
onGotoPage: onGoToPage:
{ {
// find the page index // find the page index
var page_index = -1 var page_index = -1