mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 23:38:16 +02:00
Qt: fixed weird drawing of header sections by oxygen theme.issue #23143
git-svn-id: trunk@39107 -
This commit is contained in:
parent
9fdf195785
commit
2723112e17
@ -188,6 +188,15 @@ begin
|
|||||||
HP_HEADERITEMLEFT: Position := QStyleOptionHeaderBeginning;
|
HP_HEADERITEMLEFT: Position := QStyleOptionHeaderBeginning;
|
||||||
HP_HEADERITEMRIGHT: Position := QStyleOptionHeaderEnd;
|
HP_HEADERITEMRIGHT: Position := QStyleOptionHeaderEnd;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// fix for oxygen weird drawing of header sections. issue #23143
|
||||||
|
if (GetStyleName = 'oxygen') 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
|
||||||
|
Position := QStyleOptionHeaderBeginning;
|
||||||
|
end;
|
||||||
|
|
||||||
QStyleOptionHeader_setPosition(QStyleOptionHeaderH(opt), Position);
|
QStyleOptionHeader_setPosition(QStyleOptionHeaderH(opt), Position);
|
||||||
QStyleOptionHeader_setOrientation(QStyleOptionHeaderH(opt), QtHorizontal);
|
QStyleOptionHeader_setOrientation(QStyleOptionHeaderH(opt), QtHorizontal);
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user