diff options
author | Alex McMurchy1917 <mcmurchy1917-libreoffice@yahoo.co.uk> | 2018-06-26 09:38:59 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-07-04 02:50:08 +0200 |
commit | 585415df64f226503b52d1e2b7971a9c46eb6917 (patch) | |
tree | 14d1a4b56591ed2c6f6c5d0b15f5532b795b8ef2 | |
parent | 48e14cbb13ff967e86136b11cf1bebf29e3f54cc (diff) |
tdf#115718 Fix Watch Window EditBox
For KDE4 only: this change reintroduces QStyle::PE_PanelLineEdit for
the EditBox/LineEdit widget. This allows the contents of the
Watch Window EditBox to be amended as one would expect.
Change-Id: Iffd7498d5f553ac0c9c612bf36b9f23d9eb8f86d
Reviewed-on: https://gerrit.libreoffice.org/56447
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | vcl/unx/kde4/KDESalGraphics.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index a4ad88117f57..8c0238c95acc 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -408,7 +408,12 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, draw( QStyle::PE_IndicatorToolBarHandle, &option, m_image.get(), vclStateValue2StateFlag(nControlState, value), rect ); } - else if (type == ControlType::Editbox || type == ControlType::MultilineEditbox) + else if (type == ControlType::Editbox) + { + lcl_drawFrame( QStyle::PE_PanelLineEdit, m_image.get(), + vclStateValue2StateFlag(nControlState, value)); + } + else if (type == ControlType::MultilineEditbox) { lcl_drawFrame( QStyle::PE_FrameLineEdit, m_image.get(), vclStateValue2StateFlag(nControlState, value)); |