Kaydet (Commit) 97852d41 authored tarafından Isamu Mogi's avatar Isamu Mogi Kaydeden (comit) David Tardon

vcl: Implement drawing CTRL_MENUBAR and PART_MENU_ITEM on KDE

Currently, menubar's background is drawn in window's background color
and no menubar's specific background color. To fix this, The patch
calls QStyle::drawControl() with QStyle::CE_MenuBarEmptyArea.

Change-Id: I89b9decc016a926a0f00b9663ec1a5bce81daac1
Reviewed-on: https://gerrit.libreoffice.org/4025Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 762151c3
...@@ -308,6 +308,9 @@ sal_Bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, ...@@ -308,6 +308,9 @@ sal_Bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
} }
else if (part == PART_ENTIRE_CONTROL) else if (part == PART_ENTIRE_CONTROL)
{ {
QStyleOptionMenuItem option;
draw( QStyle::CE_MenuBarEmptyArea, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment