summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsamu Mogi <saturday6c@gmail.com>2013-05-24 20:12:23 +0900
committerDavid Tardon <dtardon@redhat.com>2013-05-27 06:01:17 +0000
commit97852d41dd3c7a9c08fdf0d6f0340536e9e3dcae (patch)
treee4a304a52f611c8ae1b8e2a9819eb2ca4f597518
parent762151c35990dcd46c42816f22618c4e6c3a5625 (diff)
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/4025 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r--vcl/unx/kde4/KDESalGraphics.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index 2e9e33fd585d..5434e7c227ec 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -308,6 +308,9 @@ sal_Bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
}
else if (part == PART_ENTIRE_CONTROL)
{
+ QStyleOptionMenuItem option;
+ draw( QStyle::CE_MenuBarEmptyArea, &option, m_image,
+ vclStateValue2StateFlag(nControlState, value) );
}
else
{