summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-09-22 17:42:01 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2016-09-22 20:13:07 +0200
commit0de3368e4d82d579b8e2550391e142607cbb6aa8 (patch)
tree98872a4b1d957cd60246aefca3ed305eb0ee9379
parentc04ce0acbb68f9770e29c2e25fb74c2eb7aa2e11 (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
-rw-r--r--vcl/unx/kde4/KDESalGraphics.cxx2
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 )
{