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
|
@ -88,7 +88,7 @@ UM.MainWindow
|
|||
{
|
||||
// This connection is used when there is no ActiveMachine and the user is logged in
|
||||
target: CuraApplication
|
||||
onShowAddPrintersUncancellableDialog:
|
||||
function onShowAddPrintersUncancellableDialog()
|
||||
{
|
||||
Cura.Actions.parent = backgroundItem
|
||||
|
||||
|
@ -102,7 +102,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onInitializationFinished:
|
||||
function onInitializationFinished()
|
||||
{
|
||||
// Workaround silly issues with QML Action's shortcut property.
|
||||
//
|
||||
|
@ -471,19 +471,19 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.preferences
|
||||
onTriggered: preferences.visible = true
|
||||
function onTriggered() { preferences.visible = true }
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onShowPreferencesWindow: preferences.visible = true
|
||||
function onShowPreferencesWindow() { preferences.visible = true }
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Cura.Actions.addProfile
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
preferences.show();
|
||||
preferences.setPage(4);
|
||||
|
@ -495,7 +495,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.configureMachines
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
preferences.visible = true;
|
||||
preferences.setPage(2);
|
||||
|
@ -505,7 +505,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.manageProfiles
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
preferences.visible = true;
|
||||
preferences.setPage(4);
|
||||
|
@ -515,7 +515,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.manageMaterials
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
preferences.visible = true;
|
||||
preferences.setPage(3)
|
||||
|
@ -525,7 +525,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.configureSettingVisibility
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
preferences.visible = true;
|
||||
preferences.setPage(1);
|
||||
|
@ -550,7 +550,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.MachineManager
|
||||
onBlurSettings:
|
||||
function onBlurSettings()
|
||||
{
|
||||
contentItem.forceActiveFocus()
|
||||
}
|
||||
|
@ -594,7 +594,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onShowConfirmExitDialog:
|
||||
function onShowConfirmExitDialog(message)
|
||||
{
|
||||
exitConfirmationDialog.text = message;
|
||||
exitConfirmationDialog.open();
|
||||
|
@ -604,19 +604,19 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.quit
|
||||
onTriggered: CuraApplication.checkAndExitApplication();
|
||||
function onTriggered() { CuraApplication.checkAndExitApplication(); }
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Cura.Actions.toggleFullScreen
|
||||
onTriggered: base.toggleFullscreen()
|
||||
function onTriggered() { base.toggleFullscreen() }
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Cura.Actions.exitFullScreen
|
||||
onTriggered: base.exitFullscreen()
|
||||
function onTriggered() { base.exitFullscreen() }
|
||||
}
|
||||
|
||||
FileDialog
|
||||
|
@ -761,7 +761,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.open
|
||||
onTriggered: openDialog.open()
|
||||
function onTriggered() { openDialog.open() }
|
||||
}
|
||||
|
||||
OpenFilesIncludingProjectsDialog
|
||||
|
@ -777,7 +777,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onOpenProjectFile:
|
||||
function onOpenProjectFile(project_file, add_to_recent_files)
|
||||
{
|
||||
askOpenAsProjectOrModelsDialog.fileUrl = project_file;
|
||||
askOpenAsProjectOrModelsDialog.addToRecent = add_to_recent_files;
|
||||
|
@ -788,7 +788,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.showProfileFolder
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
var path = UM.Resources.getPath(UM.Resources.Preferences, "");
|
||||
if(Qt.platform.os == "windows")
|
||||
|
@ -820,7 +820,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onShowMessageBox:
|
||||
function onShowMessageBox(title, text, informativeText, detailedText, buttons, icon)
|
||||
{
|
||||
messageDialog.title = title
|
||||
messageDialog.text = text
|
||||
|
@ -844,7 +844,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onShowDiscardOrKeepProfileChanges:
|
||||
function onShowDiscardOrKeepProfileChanges()
|
||||
{
|
||||
discardOrKeepProfileChangesDialogLoader.sourceComponent = discardOrKeepProfileChangesDialogComponent
|
||||
discardOrKeepProfileChangesDialogLoader.item.show()
|
||||
|
@ -871,13 +871,13 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.whatsNew
|
||||
onTriggered: whatsNewDialog.show()
|
||||
function onTriggered() { whatsNewDialog.show() }
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Cura.Actions.addMachine
|
||||
onTriggered:
|
||||
function onTriggered()
|
||||
{
|
||||
// Make sure to show from the first page when the dialog shows up.
|
||||
addMachineDialog.resetModelState()
|
||||
|
@ -893,7 +893,7 @@ UM.MainWindow
|
|||
Connections
|
||||
{
|
||||
target: Cura.Actions.about
|
||||
onTriggered: aboutDialog.visible = true;
|
||||
function onTriggered() { aboutDialog.visible = true; }
|
||||
}
|
||||
|
||||
Timer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue