Toolbar buttons do not react to long clicks #26665
Labels
regression nightly
Works correctly in the latest released version and is broken in the nightly builds
UX/interaction
Issue type
UX/Interaction bug (incorrect behaviour)
Description with steps to reproduce
Originally I reported the issue for the Undo/Redo buttons with the following steps:
The keyboard shortcuts CTRL+Z / CTRL + Y seem to work fine though.
My investigation showed that:
pressAndHold
signal, even directly as implemented in the fix, supresses theclick
signal.pressAndHold
signal, if we do not consume it, we should set theaccepted
property of the mouse event tofalse
. In this case theclick
event is not supressed. Interestingly, forpressAndHold
theaccepted
property istrue
by default which means the event has to be unaccepted if not consumed. In addition, what the Qt documentation says is true: a click will happen even if you move the mouse between the press and release (as much as you want wherever you want) as long as the release occurs inside the control. It had appeared to not work properly in UI is hard to use when the user is moving the mouse while clicking #16012 becausepressAndHold
would suppress the click.Supporting files, videos and screenshots
undo-redo.mp4
What is the latest version of MuseScore Studio where this issue is present?
Latest master
Regression
Yes, this works in the latest released version and is broken in the nightly builds
Operating system
Windows 10
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: