mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 15:58:37 +02:00
Qt,Qt5,Qt6: fixed widget palette dangling pointers.
(cherry picked from commit b2dc565bb3
)
This commit is contained in:
parent
9835b964fb
commit
1f724b1393
@ -2552,8 +2552,11 @@ begin
|
||||
begin
|
||||
// DebugLn('QEventEnabledChange: ',dbgsName(LCLObject),' enabled ',dbgs(getEnabled));
|
||||
if not getEnabled then
|
||||
Palette.setTextColor(@Palette.DisabledTextColor)
|
||||
else
|
||||
begin
|
||||
BeginUpdate;
|
||||
Palette.setTextColor(@Palette.DisabledTextColor);
|
||||
EndUpdate;
|
||||
end else
|
||||
begin
|
||||
setInitialColor;
|
||||
setInitialFontColor;
|
||||
|
@ -2664,8 +2664,11 @@ begin
|
||||
begin
|
||||
// DebugLn('QEventEnabledChange: ',dbgsName(LCLObject),' enabled ',dbgs(getEnabled));
|
||||
if not getEnabled then
|
||||
Palette.setTextColor(@Palette.DisabledTextColor)
|
||||
else
|
||||
begin
|
||||
BeginUpdate;
|
||||
Palette.setTextColor(@Palette.DisabledTextColor);
|
||||
EndUpdate;
|
||||
end else
|
||||
begin
|
||||
setInitialColor;
|
||||
setInitialFontColor;
|
||||
|
@ -2662,8 +2662,11 @@ begin
|
||||
begin
|
||||
// DebugLn('QEventEnabledChange: ',dbgsName(LCLObject),' enabled ',dbgs(getEnabled));
|
||||
if not getEnabled then
|
||||
Palette.setTextColor(@Palette.DisabledTextColor)
|
||||
else
|
||||
begin
|
||||
BeginUpdate;
|
||||
Palette.setTextColor(@Palette.DisabledTextColor);
|
||||
EndUpdate;
|
||||
end else
|
||||
begin
|
||||
setInitialColor;
|
||||
setInitialFontColor;
|
||||
|
Loading…
Reference in New Issue
Block a user