[Libreoffice-commits] core.git: vcl/unx

Isamu Mogi saturday6c at gmail.com
Sun May 26 23:01:36 PDT 2013


 vcl/unx/kde4/KDESalGraphics.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 97852d41dd3c7a9c08fdf0d6f0340536e9e3dcae
Author: Isamu Mogi <saturday6c at gmail.com>
Date:   Fri May 24 20:12:23 2013 +0900

    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 at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index 2e9e33f..5434e7c 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
         {


More information about the Libreoffice-commits mailing list