mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:59:12 +02:00
Qt,Qt5: fixed paleete change at runtime. issue #38589
(cherry picked from commit 4076f4efdd
)
This commit is contained in:
parent
044eaf72fa
commit
fee3ccb58e
@ -932,6 +932,17 @@ begin
|
|||||||
begin
|
begin
|
||||||
ClearCachedColors;
|
ClearCachedColors;
|
||||||
FreeSysColorBrushes(True);
|
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;
|
||||||
end;
|
end;
|
||||||
QEventShow,
|
QEventShow,
|
||||||
|
@ -907,6 +907,17 @@ begin
|
|||||||
begin
|
begin
|
||||||
ClearCachedColors;
|
ClearCachedColors;
|
||||||
FreeSysColorBrushes(True);
|
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;
|
||||||
end;
|
end;
|
||||||
QEventShow,
|
QEventShow,
|
||||||
|
Loading…
Reference in New Issue
Block a user