diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-09-22 17:42:01 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-09-22 20:13:07 +0200 |
commit | 0de3368e4d82d579b8e2550391e142607cbb6aa8 (patch) | |
tree | 98872a4b1d957cd60246aefca3ed305eb0ee9379 /vcl | |
parent | c04ce0acbb68f9770e29c2e25fb74c2eb7aa2e11 (diff) |
tdf#97721 KDE4 no PRESSED state for checkboxes
Selecting radio and check boxes is handled via
QStyleOptionMenuItem::checked. Actually forwarding the
QStyle::State_Sunken creates strange artifacts in all
menus.
Change-Id: Ia0b0864b9bec5961023b4f25315a8acf1fae4683
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/kde4/KDESalGraphics.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index 9cdd6275d625..cd02e386de12 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -343,7 +343,7 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, QRect rect( menuItemRect.topLeft() - widgetRect.topLeft(), widgetRect.size().expandedTo( menuItemRect.size())); draw( QStyle::CE_MenuItem, &option, m_image.get(), - vclStateValue2StateFlag(nControlState, value), rect ); + vclStateValue2StateFlag(nControlState & ~ControlState::PRESSED, value), rect ); } else if( part == ControlPart::Entire ) { |