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")
width: UM.Theme.getSize("action_button").width
fixedWidthMode: true
onClicked: base.gotoPage("add_printer_by_selection")
onClicked: base.goToPage("add_printer_by_selection")
}
Cura.PrimaryButton

View file

@ -67,7 +67,7 @@ Item
onAddByIpButtonClicked:
{
base.gotoPage("add_printer_by_ip")
base.goToPage("add_printer_by_ip")
}
}
}
@ -148,7 +148,7 @@ Item
// TODO: implement machine actions
// 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 showPreviousPage()
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:
{
@ -54,7 +54,7 @@ Item
}
}
onGotoPage:
onGoToPage:
{
// find the page index
var page_index = -1