mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 16:55:55 +02:00
Qt: fixed wrong drawing of header under breeze theme
git-svn-id: trunk@57106 -
This commit is contained in:
parent
3164be0b8b
commit
22f50afec3
@ -136,6 +136,7 @@ var
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
dx, dy: integer;
|
dx, dy: integer;
|
||||||
APalette: QPaletteH;
|
APalette: QPaletteH;
|
||||||
|
W: WideString;
|
||||||
|
|
||||||
procedure DrawSplitterInternal;
|
procedure DrawSplitterInternal;
|
||||||
var
|
var
|
||||||
@ -298,8 +299,9 @@ begin
|
|||||||
HP_HEADERITEMRIGHT: Position := QStyleOptionHeaderEnd;
|
HP_HEADERITEMRIGHT: Position := QStyleOptionHeaderEnd;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// fix for oxygen weird drawing of header sections. issue #23143
|
W := GetStyleName;
|
||||||
if (GetStyleName = 'oxygen') and (Position = QStyleOptionHeaderMiddle) then
|
// fix for oxygen and breeze weird drawing of header sections. issue #23143
|
||||||
|
if ((W = 'oxygen') or (W = 'breeze')) and (Position = QStyleOptionHeaderMiddle) then
|
||||||
begin
|
begin
|
||||||
// see if this is needed (in case of fixedRows in grids)
|
// see if this is needed (in case of fixedRows in grids)
|
||||||
// if (ARect.Left > 0) or ((ARect.Left = 0) and (ARect.Top = 0)) then
|
// if (ARect.Left > 0) or ((ARect.Left = 0) and (ARect.Top = 0)) then
|
||||||
|
Loading…
Reference in New Issue
Block a user