mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-22 10:21:39 -07: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
|
|
@ -219,7 +219,7 @@ Button
|
|||
Connections
|
||||
{
|
||||
target: Cura.MachineManager
|
||||
onCurrentConfigurationChanged:
|
||||
function onCurrentConfigurationChanged()
|
||||
{
|
||||
configurationItem.checked = Cura.MachineManager.matchesConfiguration(configuration)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: outputDevice
|
||||
onUniqueConfigurationsChanged:
|
||||
function onUniqueConfigurationsChanged()
|
||||
{
|
||||
forceModelUpdate()
|
||||
}
|
||||
|
|
@ -135,7 +135,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: Cura.MachineManager
|
||||
onOutputDevicesChanged:
|
||||
function onOutputDevicesChanged()
|
||||
{
|
||||
forceModelUpdate()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -236,6 +236,6 @@ Cura.ExpandablePopup
|
|||
Connections
|
||||
{
|
||||
target: Cura.MachineManager
|
||||
onGlobalContainerChanged: popupItem.manual_selected_method = -1 // When switching printers, reset the value of the manual selected method
|
||||
function onGlobalContainerChanged() { popupItem.manual_selected_method = -1 } // When switching printers, reset the value of the manual selected method
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: Cura.ExtruderManager
|
||||
onActiveExtruderChanged:
|
||||
function onActiveExtruderChanged()
|
||||
{
|
||||
tabBar.setCurrentIndex(Cura.ExtruderManager.activeExtruderIndex);
|
||||
}
|
||||
|
|
@ -139,7 +139,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: repeater.model
|
||||
onModelChanged:
|
||||
function onModelChanged()
|
||||
{
|
||||
tabBar.setCurrentIndex(Cura.ExtruderManager.activeExtruderIndex)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue