mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 07:38:28 +02:00
Qt: do not send doubled mouseUp events
git-svn-id: trunk@54148 -
This commit is contained in:
parent
e2b4f692bc
commit
0e3107262b
@ -3579,10 +3579,10 @@ var
|
|||||||
QWidget_isEnabled(AWidgetAt) then
|
QWidget_isEnabled(AWidgetAt) then
|
||||||
QWidget_setFocus(AWidgetAt, QtMouseFocusReason);
|
QWidget_setFocus(AWidgetAt, QtMouseFocusReason);
|
||||||
AWnd := HwndFromWidgetH(AWidgetAt);
|
AWnd := HwndFromWidgetH(AWidgetAt);
|
||||||
if (AWnd <> 0) and Assigned(TQtWidget(AWnd).LCLObject) then
|
if (AWnd <> 0) and Assigned(TQtWidget(AWnd).LCLObject) and
|
||||||
|
(QEvent_type(Event) <> QEventMouseButtonRelease) then
|
||||||
begin
|
begin
|
||||||
if (QEvent_type(Event) <> QEventMouseButtonRelease) and
|
if (QMouseEvent_button(QMouseEventH(Event)) = QtRightButton) then
|
||||||
(QMouseEvent_button(QMouseEventH(Event)) = QtRightButton) then
|
|
||||||
begin
|
begin
|
||||||
AContextEvent := QContextMenuEvent_create(QContextMenuEventMouse, @APos, QMouseEvent_globalPos(AMouseEvent),
|
AContextEvent := QContextMenuEvent_create(QContextMenuEventMouse, @APos, QMouseEvent_globalPos(AMouseEvent),
|
||||||
QInputEvent_modifiers(QInputEventH(Event)));
|
QInputEvent_modifiers(QInputEventH(Event)));
|
||||||
|
Loading…
Reference in New Issue
Block a user