Skip to content

Commit

Permalink
Fix deprecation warnings with Qt 5.15.2 and some qml files
Browse files Browse the repository at this point in the history
Duplicate of musescore#7388
  • Loading branch information
Jojo-Schmitz committed Aug 19, 2021
1 parent 3ca622a commit 2034bc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mscore/qml/palettes/Palette.qml
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ GridView {
// force not hiding palette cell if it is being dragged to a score
enabled: paletteCell.paletteDrag
target: mscore
onElementDraggedToScoreView: paletteCell.paletteDrag = false
function onElementDraggedToScoreView() { paletteCell.paletteDrag = false; }
}
} // end ItemDelegate
} // end DelegateModel
Expand Down
2 changes: 1 addition & 1 deletion mscore/qml/palettes/PaletteTree.qml
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ ListView {

Connections {
target: palettesWidget
onHasFocusChanged: {
function onHasFocusChanged () {
if (!palettesWidget.hasFocus) {
paletteSelectionModel.clearSelection();
expandedPopupIndex = null;
Expand Down
2 changes: 1 addition & 1 deletion mscore/qml/palettes/PalettesWidgetHeader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Item {

Connections {
target: palettesWidget
onHasFocusChanged: {
function onHasFocusChanged () {
if (!palettesWidget.hasFocus && !palettesListPopup.inMenuAction)
palettesListPopup.visible = false;
}
Expand Down

0 comments on commit 2034bc9

Please sign in to comment.