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:
zeljko 2010-12-18 14:54:19 +00:00
parent fcdd2aacf9
commit 27f49fdf46

View File

@ -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