Fix button state after synthesized mouse release
This commit is contained in:
parent
cf906f14bd
commit
6c216e437d
1 changed files with 3 additions and 1 deletions
|
|
@ -166,7 +166,9 @@ void SendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton
|
||||||
, localPoint
|
, localPoint
|
||||||
, globalPoint
|
, globalPoint
|
||||||
, button
|
, button
|
||||||
, QGuiApplication::mouseButtons() | button
|
, type == QEvent::MouseButtonRelease
|
||||||
|
? QGuiApplication::mouseButtons() ^ button
|
||||||
|
: QGuiApplication::mouseButtons() | button
|
||||||
, QGuiApplication::keyboardModifiers()
|
, QGuiApplication::keyboardModifiers()
|
||||||
, Qt::MouseEventSynthesizedByApplication
|
, Qt::MouseEventSynthesizedByApplication
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue