summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-01-12 14:07:41 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-22 18:27:39 +0000
commit5baf644660cdc8a486be6180329f5ffb4960a63d (patch)
tree73617e8a9a188ada4e6339428f5b37afff67da37 /qmake
parentbb6fba1834bc3c41a45a198aadd668b8fa58952c (diff)
QWidgetTextControl: Ignore unconsumed mouse release eventsv6.5.0-beta2
QWidgetTextControlPrivate::mouseReleaseEvent() has early returns implemented, e.g. when link has been right clicked or no selection anchor has been found. These early returns, however, still consume the event. This leads to events getting lost instead of getting propagated: As an example, a QLabel with rich text uses QWidgetTextControl. While it propagates mouse press events back to its parent, mouse release events get lost. A QLabel with plain text propagates both events back correctly. This patch adds QEvent::ignore() to the early return. Since no test class exists for QWidgetTextControl, it adds a test in tst_QLabel. Fixes: QTBUG-110055 Change-Id: I950f8c3f135793b01c59832835bb429db2282169 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 7689d4ad2f673317af432aae498da74d13703126) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions