[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kstyles/oxygen
From:       Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date:       2010-12-22 19:21:26
Message-ID: 20101222192126.577DDAC8AA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1208664 by hpereiradacosta:

set WM hint to tell to the windeco that background gradient is supported.


 M  +8 -1      oxygenstyle.cpp  


--- trunk/KDE/kdebase/workspace/kstyles/oxygen/oxygenstyle.cpp #1208663:1208664
@@ -233,7 +233,14 @@
 
             case Qt::Window:
             case Qt::Dialog:
+
+            // set background as styled
             widget->setAttribute( Qt::WA_StyledBackground );
+
+            // install WM hint
+            if( widget->isWindow() )
+            { helper().setHasBackgroundGradient( widget->winId(), true ); }
+
             break;
 
             case Qt::ToolTip:
@@ -6547,7 +6554,7 @@
                     else if( isRightOfSelected ) tabRect.setTop( tabRect.top() - 2 );
 
                     if( isFirst )
-                    {
+                    {
 
                         tabRect.adjust( 0, GlowWidth, 0, 0 );
                         if( isFrameAligned ) path.moveTo( tabRect.topRight() + QPoint( 2, 0 ) );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic