diff options
author | Kostas Karmas <konskarm@gmail.com> | 2021-03-30 09:46:14 +0300 |
---|---|---|
committer | Kostas Karmas <konskarm@gmail.com> | 2021-03-30 10:02:48 +0300 |
commit | 7827b36ab75ecaa9e78c0d8213f8f7280e660ae0 (patch) | |
tree | 6dbe9d71ec51bf40e5658486098f7b1ef7dbe764 /resources/qml/Cura.qml | |
parent | a277adae64c867cdbb07858b1b04f9e87a620d06 (diff) |
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).
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r-- | resources/qml/Cura.qml | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 7772cc041a..067024a7b5 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -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 |