summaryrefslogtreecommitdiff
path: root/vcl/unx/kde4
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-04-08 18:19:19 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-04-08 22:01:25 +0200
commite57e12562b3a133db3e7d6c07e1e1d490d85cdec (patch)
tree82ff4fdd9c27bd8b6086a980c5b8ec93213cbeb0 /vcl/unx/kde4
parent4398dc5ff4e9729a6823f63d32011bbfccbac25d (diff)
kde4 size of menu radio/checkboxes
Diffstat (limited to 'vcl/unx/kde4')
-rw-r--r--vcl/unx/kde4/KDESalGraphics.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index 787c3e3fac43..6d7de837e65b 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -810,16 +810,8 @@ sal_Bool KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart p
break;
}
case CTRL_MENU_POPUP:
- //just limit the widget of the menu items
- //OO isn't very flexible in all reguards with the menu
- //so we do the best we can
- if (part == PART_MENU_ITEM_CHECK_MARK)
- {
- contentRect.setWidth(contentRect.height());
- retVal = true;
- }
- else if (part == PART_MENU_ITEM_RADIO_MARK)
- {
+ if (part == PART_MENU_ITEM_CHECK_MARK || part == PART_MENU_ITEM_RADIO_MARK)
+ { // core uses this to detect radio/checkbox sizes, so just set a square
contentRect.setWidth(contentRect.height());
retVal = true;
}