Skip to content

Commit d3ae653

Browse files
committed
Fix deprecation warnings with Qt 5.15.2 and some qml files
1 parent 469286d commit d3ae653

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mscore/qml/palettes/Palette.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ GridView {
767767
// force not hiding palette cell if it is being dragged to a score
768768
enabled: paletteCell.paletteDrag
769769
target: mscore
770-
onElementDraggedToScoreView: paletteCell.paletteDrag = false
770+
function onElementDraggedToScoreView() { paletteCell.paletteDrag = false; }
771771
}
772772
} // end ItemDelegate
773773
} // end DelegateModel

mscore/qml/palettes/PaletteTree.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ ListView {
771771

772772
Connections {
773773
target: palettesWidget
774-
onHasFocusChanged: {
774+
function onHasFocusChanged () {
775775
if (!palettesWidget.hasFocus) {
776776
paletteSelectionModel.clearSelection();
777777
expandedPopupIndex = null;

mscore/qml/palettes/PalettesWidgetHeader.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Item {
224224

225225
Connections {
226226
target: palettesWidget
227-
onHasFocusChanged: {
227+
function onHasFocusChanged () {
228228
if (!palettesWidget.hasFocus && !palettesListPopup.inMenuAction)
229229
palettesListPopup.visible = false;
230230
}

0 commit comments

Comments
 (0)