mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-05 07:19:34 +01:00
Qt: use QEventLayoutRequest after QEventResize to check if clientrect needs update. issue #20404
git-svn-id: trunk@32670 -
This commit is contained in:
parent
33b1105d89
commit
a51e5a185b
@ -6442,7 +6442,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
QEventHide:
|
QEventHide:
|
||||||
begin
|
begin
|
||||||
if Assigned(FOwner) and (FOwner is TQtCustomControl) then
|
if Assigned(FOwner) and (FOwner is TQtCustomControl) then
|
||||||
@ -12253,7 +12252,15 @@ begin
|
|||||||
QEvent_ignore(Event);
|
QEvent_ignore(Event);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
QEventLayoutRequest: ; // nothing to do here
|
QEventLayoutRequest:
|
||||||
|
begin
|
||||||
|
with TQtCustomControl(FOwner) do
|
||||||
|
begin
|
||||||
|
if (ChildOfComplexWidget = ccwScrollingWinControl) and
|
||||||
|
Self.LCLObject.ClientRectNeedsInterfaceUpdate then
|
||||||
|
Self.LCLObject.DoAdjustClientRectChange(True);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
else
|
else
|
||||||
Result := inherited EventFilter(Sender, Event);
|
Result := inherited EventFilter(Sender, Event);
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user