mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -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
|
@ -112,8 +112,8 @@ Column
|
|||
Connections
|
||||
{
|
||||
target: toolbox
|
||||
onInstallChanged: installed = toolbox.isInstalled(model.id)
|
||||
onFilterChanged:
|
||||
function onInstallChanged() { installed = toolbox.isInstalled(model.id) }
|
||||
function onFilterChanged()
|
||||
{
|
||||
installed = toolbox.isInstalled(model.id)
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: toolbox
|
||||
onEnabledChanged: isEnabled = toolbox.isEnabled(model.id)
|
||||
function onEnabledChanged() { isEnabled = toolbox.isEnabled(model.id) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ Column
|
|||
Connections
|
||||
{
|
||||
target: toolbox
|
||||
onMetadataChanged:
|
||||
function onMetadataChanged()
|
||||
{
|
||||
canDowngrade = toolbox.canDowngrade(model.id)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue