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