mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Fix QML warnings due to depricated on<signal> calls in Connections
As of 5.12, the signals used in connections should not be declared as on<signal>, but as function on<signal>(arguments).
This commit is contained in:
parent
a277adae64
commit
7827b36ab7
46 changed files with 113 additions and 122 deletions
|
@ -41,7 +41,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication.getDiscoveredPrintersModel()
|
||||
onDiscoveredPrintersChanged:
|
||||
function onDiscoveredPrintersChanged()
|
||||
{
|
||||
if (hasRequestFinished && currentRequestAddress)
|
||||
{
|
||||
|
@ -310,7 +310,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication.getDiscoveredPrintersModel()
|
||||
onManualDeviceRequestFinished:
|
||||
function onManualDeviceRequestFinished(success)
|
||||
{
|
||||
var discovered_printers_model = CuraApplication.getDiscoveredPrintersModel()
|
||||
var printer = discovered_printers_model.discoveredPrintersByAddress[hostnameField.text]
|
||||
|
|
|
@ -35,7 +35,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: header
|
||||
onClicked:
|
||||
function onClicked()
|
||||
{
|
||||
base.contentShown = !base.contentShown
|
||||
clicked()
|
||||
|
|
|
@ -27,7 +27,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: machineActionsModel
|
||||
onAllFinished:
|
||||
function onAllFinished()
|
||||
{
|
||||
if (visible)
|
||||
{
|
||||
|
|
|
@ -61,6 +61,6 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: model
|
||||
onAllFinished: dialog.visible = false
|
||||
function onAllFinished() { dialog.visible = false }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ Window
|
|||
Connections
|
||||
{
|
||||
target: model
|
||||
onAllFinished: dialog.hide()
|
||||
function onAllFinished() { dialog.hide() }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue