From d736178bb5b6e79846f5660206247e86bf72ab5f Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sun, 11 Oct 2009 20:00:14 +0000 Subject: [PATCH] fixed drawFloatFrame issue in titleoutline mode svn path=/trunk/KDE/kdebase/workspace/; revision=1034042 --- clients/oxygen/oxygenclient.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 363a495174..04adfda77d 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -934,9 +934,19 @@ namespace Oxygen KDecoration::options()->color(ColorTitleBar) ); + } else if( drawTitleOutline() ) { + + // for small borders, use a frame that matches the titlebar only + QRect local( frame.topLeft(), QSize( frame.width(), HFRAMESIZE ) ); + helper().drawFloatFrame( + &painter, local, backgroundPalette( widget(), palette ).color( widget()->backgroundRole() ), + false, isActive() && configuration().useOxygenShadows(), + KDecoration::options()->color(ColorTitleBar) + ); + } else { - // for tiny borders, use a frame that matches the titlebar only + // for small borders, use a frame that matches the titlebar only QRect local( frame.topLeft(), QSize( frame.width(), layoutMetric(LM_TitleHeight) + layoutMetric(LM_TitleEdgeTop) ) ); helper().drawFloatFrame( &painter, local, backgroundPalette( widget(), palette ).color( widget()->backgroundRole() ),