mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
Qt: fixed problem with TCustomPanel.Color, when panel is painted via Frame3d.Problem raised with r41291 #15dc88089b while fixing #24445
git-svn-id: trunk@41475 -
This commit is contained in:
parent
7a48891a3d
commit
fc08e9727f
@ -2528,7 +2528,14 @@ begin
|
||||
if lineWidth > 1 then
|
||||
q_DrawWinPanel(Widget, x, y, w, h, Palette, Sunken, FillBrush)
|
||||
else
|
||||
q_DrawShadePanel(Widget, x, y, w, h, Palette, Sunken, 1, FillBrush);
|
||||
begin
|
||||
if (FillBrush = nil) and Assigned(Parent) and
|
||||
QObject_inherits(Parent,'QFrame') then
|
||||
q_DrawShadePanel(Widget, x, y, w, h, Palette, Sunken, 1, QPalette_background(Palette))
|
||||
else
|
||||
q_DrawShadePanel(Widget, x, y, w, h, Palette, Sunken, 1, FillBrush);
|
||||
end;
|
||||
|
||||
|
||||
if AppPalette <> nil then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user