mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-23 18:01:36 +02: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;
|
||||
|
||||
QEventHide:
|
||||
begin
|
||||
if Assigned(FOwner) and (FOwner is TQtCustomControl) then
|
||||
@ -12253,7 +12252,15 @@ begin
|
||||
QEvent_ignore(Event);
|
||||
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
|
||||
Result := inherited EventFilter(Sender, Event);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user