mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 06:38:06 +02:00
Qt,Qt5: fixed paleete change at runtime. issue #38589
This commit is contained in:
parent
8d41aa5e99
commit
4076f4efdd
@ -932,6 +932,17 @@ begin
|
||||
begin
|
||||
ClearCachedColors;
|
||||
FreeSysColorBrushes(True);
|
||||
end else
|
||||
begin
|
||||
if QObject_isWidgetType(Sender) then
|
||||
begin
|
||||
W := QtObjectFromWidgetH(QWidgetH(Sender));
|
||||
if (W <> nil) and Assigned(W.LCLObject) and W.IsWindow then
|
||||
begin
|
||||
RecreateWnd(W.LCLObject);
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
QEventShow,
|
||||
|
@ -911,6 +911,17 @@ begin
|
||||
begin
|
||||
ClearCachedColors;
|
||||
FreeSysColorBrushes(True);
|
||||
end else
|
||||
begin
|
||||
if QObject_isWidgetType(Sender) then
|
||||
begin
|
||||
W := QtObjectFromWidgetH(QWidgetH(Sender));
|
||||
if (W <> nil) and Assigned(W.LCLObject) and W.IsWindow then
|
||||
begin
|
||||
RecreateWnd(W.LCLObject);
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
QEventShow,
|
||||
|
Loading…
Reference in New Issue
Block a user