-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MU3] Fix deprecation warnings with Qt 5.15.2 and some palette qml files #7388
Conversation
8c0cd03
to
d3ae653
Compare
As far as I can tell lack of these operations will not break palettes entirely, so most basic operations will probably indeed work as expected. Certain UX-related features may however break if these handlers would work incorrectly:
So these aspects should probably be tested to ensure that they work properly. But as far as I understand these functions will not be considered signal handlers by Qt 5.9 if they are declared as |
Thanks |
I'd prefer to not merge this into 3.x, because it's pretty dangerous and the benefit is small. I also strongly discourage to build the 3.x branch with QT 5.15 |
I tend to agree. Linux maintainers may not though. |
d3ae653
to
c2cc7da
Compare
These warnings are already fixed in master |
Yes, but not for 3.x, not on (Linux) builds from distributors that otherwise use Qt 5.15+ |
I'll archive this PR, the link will still persist |
Well, if a 3.6.3 is not planned, merging this won't do any harm either... |
This PR is something @mirabilos might be interested in, for the Debian ports? |
@@ -767,7 +767,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; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really?
I’d have thought this…
onElementDraggedToScoreView: function () { paletteCell.paletteDrag = false; }
But if it works… sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t doubt that ☻ it’s just that JavaScript continues to irritate me, the more I learn about it ☺
@vpereverzev we build with whatever Qt version we have in the distros. That is currently:
They all work, for what it’s worth, with the occasional patch; I’m ignoring the deprecation warnings for now since there won’t be a Qt 6 in Debian/Ubuntu in the foreseeable future. |
There shouldn't be any deprecation warnings in the latest 3.x codebase, those had been taken care of quite a while ago (but probably after 3.2.3, see #6813), not in the C++ code and at compile time at least. Just those QML ones from this PR, and at runtime. |
These warnings (lots of them) show at run time, not at compile time and may be quite irritating esp. for/on Linux, where MuseScore may use a newer Qt version.
Many times during startup and again on palette use:
Once per startup:
See also https://doc.qt.io/qt-5/qml-qtqml-connections.html
For now a test, need to check the artifacts, which would use the older Qt 5.9.9 (which I don't have installed any more)
As per https://stackoverflow.com/questions/62297192/qml-connections-implicitly-defined-onfoo-properties-in-connections-are-deprecat as of QT 5.15.1 that new warning can get avoided by
QT_LOGGING_RULES="qt.qml.connections=false"
and that new/changed syntax is not supported by Qt 5.12 :-(The artifact (for Windows) seems to work just fine though!?
What operations would need to get tested to verify? Selecting a score element and applying a palette element via double click works, as does dragging a palette element to a score element