fixed drawFloatFrame issue in titleoutline mode
svn path=/trunk/KDE/kdebase/workspace/; revision=1034042
This commit is contained in:
parent
00e9cbd9a9
commit
d736178bb5
1 changed files with 11 additions and 1 deletions
|
@ -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() ),
|
||||
|
|
Loading…
Reference in a new issue