diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-06 09:47:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-06 09:50:46 +0000 |
commit | 5c0e20240a8e55972e5f46b7f9f5c0d8f9733924 (patch) | |
tree | 1fb41ff102d3fe8b8c11f67a813f5329e283a2b5 /vcl/unx/kde4 | |
parent | 1b5c8e4a031af17c47a2900da09c1db1df1242df (diff) |
fix build after enumification of ControlState
Change-Id: If6ab3a27a958e83419f576f720ab891a9c36c684
Diffstat (limited to 'vcl/unx/kde4')
-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 d0f5e63812ed..282566c5e4f1 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -337,7 +337,7 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, QStyleOptionMenuItem option; option.checkType = ( part == PART_MENU_ITEM_CHECK_MARK ) ? QStyleOptionMenuItem::NonExclusive : QStyleOptionMenuItem::Exclusive; - option.checked = ( nControlState & ControlState::PRESSED ); + option.checked = (nControlState & ControlState::PRESSED) ? true : false; // widgetRect is now the rectangle for the checkbox/radiobutton itself, but Qt // paints the whole menu item, so translate position (and it'll be clipped); // it is also necessary to fill the background transparently first, as this |