diff --git a/meshroom/ui/qml/Charts/ChartViewLegend.qml b/meshroom/ui/qml/Charts/ChartViewLegend.qml index d727c531..240208e4 100644 --- a/meshroom/ui/qml/Charts/ChartViewLegend.qml +++ b/meshroom/ui/qml/Charts/ChartViewLegend.qml @@ -29,12 +29,12 @@ Flow { // Update internal ListModel when ChartView's series change Connections { target: chartView - onSeriesAdded: seriesModel.append({"series": series}) - onSeriesRemoved: { - for(var i = 0; i < seriesModel.count; ++i) - { - if(seriesModel.get(i)["series"] === series) - { + function onSeriesAdded(series) { + seriesModel.append({"series": series}) + } + function onSeriesRemoved(series) { + for(var i = 0; i < seriesModel.count; ++i) { + if(seriesModel.get(i)["series"] === series) { seriesModel.remove(i); return; } diff --git a/meshroom/ui/qml/GraphEditor/AttributeItemDelegate.qml b/meshroom/ui/qml/GraphEditor/AttributeItemDelegate.qml index e7152b65..ee674764 100644 --- a/meshroom/ui/qml/GraphEditor/AttributeItemDelegate.qml +++ b/meshroom/ui/qml/GraphEditor/AttributeItemDelegate.qml @@ -316,7 +316,9 @@ RowLayout { onActivated: _reconstruction.setAttribute(attribute, currentText) Connections { target: attribute - onValueChanged: combo.currentIndex = combo.find(attribute.value) + function onValueChanged() { + combo.currentIndex = combo.find(attribute.value) + } } } } diff --git a/meshroom/ui/qml/GraphEditor/Node.qml b/meshroom/ui/qml/GraphEditor/Node.qml index 2f942694..ff2c5220 100755 --- a/meshroom/ui/qml/GraphEditor/Node.qml +++ b/meshroom/ui/qml/GraphEditor/Node.qml @@ -67,7 +67,7 @@ Item { Connections { target: root.node // update x,y when node position changes - onPositionChanged: { + function onPositionChanged() { root.x = root.node.x root.y = root.node.y } diff --git a/meshroom/ui/qml/ImageGallery/ImageGallery.qml b/meshroom/ui/qml/ImageGallery/ImageGallery.qml index f81c997d..6129fd63 100644 --- a/meshroom/ui/qml/ImageGallery/ImageGallery.qml +++ b/meshroom/ui/qml/ImageGallery/ImageGallery.qml @@ -179,7 +179,7 @@ Panel { // Update grid current item when selected view changes Connections { target: _reconstruction - onSelectedViewIdChanged: { + function onSelectedViewIdChanged() { if (_reconstruction.selectedViewId > -1) { grid.updateCurrentIndexFromSelectionViewId() } diff --git a/meshroom/ui/qml/ImageGallery/IntrinsicDisplayDelegate.qml b/meshroom/ui/qml/ImageGallery/IntrinsicDisplayDelegate.qml index 1c6aead6..f8e249e7 100644 --- a/meshroom/ui/qml/ImageGallery/IntrinsicDisplayDelegate.qml +++ b/meshroom/ui/qml/ImageGallery/IntrinsicDisplayDelegate.qml @@ -141,7 +141,7 @@ RowLayout { Connections { target: attribute - onValueChanged: combo.currentIndex = combo.find(attribute.value) + function onValueChanged() { combo.currentIndex = combo.find(attribute.value) } } } } diff --git a/meshroom/ui/qml/Viewer/PanoramaViewer.qml b/meshroom/ui/qml/Viewer/PanoramaViewer.qml index c0a849d4..6287c35f 100644 --- a/meshroom/ui/qml/Viewer/PanoramaViewer.qml +++ b/meshroom/ui/qml/Viewer/PanoramaViewer.qml @@ -317,7 +317,7 @@ AliceVision.PanoramaViewer { } Connections { target: root - onDownscaleReady: { + function onDownscaleReady() { root.imagesLoaded = 0; // Retrieve downscale value from C++ diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index 5083f1bf..a1139985 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -285,7 +285,7 @@ FocusScope { Connections { target: _reconstruction - onSelectedViewIdChanged: { + function onSelectedViewIdChanged() { root.source = getImageFile(); if (useExternal) useExternal = false; diff --git a/meshroom/ui/qml/WorkspaceView.qml b/meshroom/ui/qml/WorkspaceView.qml index f1a813ef..cc28a712 100644 --- a/meshroom/ui/qml/WorkspaceView.qml +++ b/meshroom/ui/qml/WorkspaceView.qml @@ -39,13 +39,13 @@ Item { Connections { target: reconstruction - onGraphChanged: { + function onGraphChanged() { if(panel3dViewerLoader.active) { panel3dViewerLoader.item.viewer3D.clear() } } - onSfmChanged: viewSfM() - onSfmReportChanged: viewSfM() + function onSfmChanged() { viewSfM() } + function onSfmReportChanged() { viewSfM() } } Component.onCompleted: viewSfM() diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index f92bbd90..80dc4c20 100644 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -866,7 +866,7 @@ ApplicationWindow { dialog.detailedText = message.detailedText } - onGraphChanged: { + function onGraphChanged() { // open CompatibilityManager after file loading if any issue is detected if(compatibilityManager.issueCount) compatibilityManager.open() @@ -874,9 +874,9 @@ ApplicationWindow { graphEditor.fit() } - onInfo: createDialog(dialogsFactory.info, arguments[0]) - onWarning: createDialog(dialogsFactory.warning, arguments[0]) - onError: createDialog(dialogsFactory.error, arguments[0]) + function onInfo() { createDialog(dialogsFactory.info, arguments[0]) } + function onWarning() { createDialog(dialogsFactory.warning, arguments[0]) } + function onError() { createDialog(dialogsFactory.error, arguments[0]) } }