diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-07-05 11:28:39 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-07-09 15:33:18 +0200 |
commit | 5f33fa5ded2bb168a51f2b6f8e42a1373d15a0ac (patch) | |
tree | 9680c0f3dff370f4e4abc90ad5582eb01c584b76 /vcl | |
parent | b7ae14ba2f90507cab1925cd3c63dfe996cf76c7 (diff) |
Don't draw focus around checkboxes and radiobuttons
it is drawn separately around cb/rb's text
Change-Id: I22737944048c4d501ba4dc5416fa79d4d081e91c
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/kde5/KDE5SalGraphics.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx index 9377a134fdc4..f26e559b921e 100644 --- a/vcl/unx/kde5/KDE5SalGraphics.cxx +++ b/vcl/unx/kde5/KDE5SalGraphics.cxx @@ -468,6 +468,8 @@ bool KDE5SalGraphics::drawNativeControl(ControlType type, ControlPart part, if (part == ControlPart::Entire) { QStyleOptionButton option; + // clear FOCUSED bit, focus is drawn separately + nControlState &= ~(ControlState::FOCUSED); draw(QStyle::CE_CheckBox, &option, m_image.get(), vclStateValue2StateFlag(nControlState, value)); } @@ -548,6 +550,8 @@ bool KDE5SalGraphics::drawNativeControl(ControlType type, ControlPart part, if (part == ControlPart::Entire) { QStyleOptionButton option; + // clear FOCUSED bit, focus is drawn separately + nControlState &= ~(ControlState::FOCUSED); draw(QStyle::CE_RadioButton, &option, m_image.get(), vclStateValue2StateFlag(nControlState, value)); } |