diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-04-24 16:45:55 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-06-01 10:06:28 +0200 |
commit | 37a17795cd3ad402d1022789259451c32c429644 (patch) | |
tree | 4de21adecd1113b55aa49c814de42bbec4297d5b | |
parent | 66a771281108ece3764574f64bd65c52b2db5cce (diff) |
Render frames and window background natively
Change-Id: I947abe375fc74acbb8628076a0938d1074d1427c
-rw-r--r-- | vcl/unx/kde5/KDE5SalGraphics.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx index bf58a1f6706f..4c5a70a89a77 100644 --- a/vcl/unx/kde5/KDE5SalGraphics.cxx +++ b/vcl/unx/kde5/KDE5SalGraphics.cxx @@ -94,9 +94,9 @@ bool KDE5SalGraphics::IsNativeControlSupported( ControlType type, ControlPart pa case ControlType::MultilineEditbox: case ControlType::Combobox: case ControlType::Toolbar: - /*case ControlType::Frame: - case ControlType::Scrollbar: - case ControlType::WindowBackground:*/ + case ControlType::Frame: + /*case ControlType::Scrollbar:*/ + case ControlType::WindowBackground: case ControlType::Fixedline: return true; @@ -533,7 +533,7 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, QStyleOption option; draw( QStyle::PE_PanelTipLabel, &option, m_image.get(), vclStateValue2StateFlag(nControlState, value) ); - } + }*/ else if (type == ControlType::Frame) { lcl_drawFrame( QStyle::PE_Frame, m_image.get(), @@ -545,7 +545,7 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, else if (type == ControlType::WindowBackground) { // Nothing to do - see "Default image color" switch ^^ - }*/ + } else if (type == ControlType::Fixedline) { QStyleOptionMenuItem option; @@ -791,7 +791,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part } break; } - /*case ControlType::Frame: + case ControlType::Frame: { if( part == ControlPart::Border ) { @@ -805,7 +805,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part retVal = true; } break; - }*/ + } case ControlType::Radiobutton: { const int h = QApplication::style()->pixelMetric(QStyle::PM_ExclusiveIndicatorHeight); |