mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
Qt: release mouse capture if widget is hidden and it grabs mouse by itself.fixes issue #18250
git-svn-id: trunk@28761 -
This commit is contained in:
parent
fcdd2aacf9
commit
27f49fdf46
@ -2110,7 +2110,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
QEventShow: SlotShow(True);
|
||||
QEventHide: SlotShow(False);
|
||||
QEventHide:
|
||||
begin
|
||||
if QWidget_mouseGrabber() = Widget then
|
||||
ReleaseCapture;
|
||||
SlotShow(False);
|
||||
end;
|
||||
QEventClose:
|
||||
if not SlotClose then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user