vcl/unx/kde5/KDE5SalGraphics.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 826f2e7d7de87d03dcdb1f0433730bff8ce4f7a8 Author: Katarina Behrens <katarina.behr...@cib.de> Date: Thu May 3 16:45:57 2018 +0200 Render list headers natively they have somehow odd colour though Change-Id: I645581cc594ba3e06c4475957565aadc633b9d20 diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx index 92275052013a..070a18c0f57c 100644 --- a/vcl/unx/kde5/KDE5SalGraphics.cxx +++ b/vcl/unx/kde5/KDE5SalGraphics.cxx @@ -90,6 +90,9 @@ bool KDE5SalGraphics::IsNativeControlSupported( ControlType type, ControlPart pa case ControlType::Pushbutton: return (part == ControlPart::Entire) || (part == ControlPart::Focus); + case ControlType::ListHeader: + return (part == ControlPart::Button); + case ControlType::Menubar: case ControlType::MenuPopup: case ControlType::Editbox: @@ -422,6 +425,12 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, draw( QStyle::PE_IndicatorBranch, &option, m_image.get(), vclStateValue2StateFlag(nControlState, value) ); } + else if (type == ControlType::ListHeader) + { + QStyleOptionHeader option; + draw(QStyle::CE_HeaderSection, &option, m_image.get(), + vclStateValue2StateFlag(nControlState, value) ); + } else if (type == ControlType::Checkbox) { if (part == ControlPart::Entire) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits