diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-04-23 15:14:22 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-06-01 10:06:26 +0200 |
commit | 0c7b97c110678b9ac3c06eef182ad6370b4fb677 (patch) | |
tree | 86452931f9299ca35582b1620eba0a96f1c17628 /vcl | |
parent | fc6f2f4e11a168394169e10dcc80e81dff7cf42e (diff) |
Render listboxes and comboboxes natively
Change-Id: Ia8d46717df43b088bb72d1f937998a64795f663e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/kde5/KDE5SalGraphics.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx index e686565b46f2..7a072938743a 100644 --- a/vcl/unx/kde5/KDE5SalGraphics.cxx +++ b/vcl/unx/kde5/KDE5SalGraphics.cxx @@ -101,19 +101,19 @@ bool KDE5SalGraphics::IsNativeControlSupported( ControlType type, ControlPart pa /*case ControlType::Menubar: case ControlType::MenuPopup: case ControlType::Editbox: - case ControlType::MultilineEditbox: + case ControlType::MultilineEditbox:*/ case ControlType::Combobox: - case ControlType::Toolbar: + /*case ControlType::Toolbar: case ControlType::Frame: case ControlType::Scrollbar: case ControlType::WindowBackground: - case ControlType::Fixedline: + case ControlType::Fixedline:*/ return true; case ControlType::Listbox: return (part == ControlPart::Entire || part == ControlPart::HasBackgroundTexture); - case ControlType::Spinbox: + /*case ControlType::Spinbox: return (part == ControlPart::Entire || part == ControlPart::HasBackgroundTexture); case ControlType::Slider: @@ -426,7 +426,7 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, { lcl_drawFrame( QStyle::PE_FrameLineEdit, m_image.get(), vclStateValue2StateFlag(nControlState, value)); - } + }*/ else if (type == ControlType::Combobox) { QStyleOptionComboBox option; @@ -462,7 +462,7 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, break; } } - else if (type == ControlType::ListNode) + /*else if (type == ControlType::ListNode) { QStyleOption option; option.state = QStyle::State_Item | QStyle::State_Children; @@ -699,7 +699,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part retVal = true; } break; - /*case ControlType::Combobox: + case ControlType::Combobox: case ControlType::Listbox: { QStyleOptionComboBox cbo; @@ -712,7 +712,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part case ControlPart::Entire: { // find out the minimum size that should be used - // assume contents is a text ling + // assume contents is a text line int nHeight = QApplication::fontMetrics().height(); QSize aContentSize( contentRect.width(), nHeight ); QSize aMinSize = QApplication::style()-> @@ -742,7 +742,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part } break; } - case ControlType::Spinbox: + /*case ControlType::Spinbox: { QStyleOptionSpinBox sbo; sbo.frame = true; |