Do not draw the title "slab" in "outline window title" mode, when the client title is empty (or contains

only space characters). Except when tabbed together with other windows. 


svn path=/trunk/KDE/kdebase/workspace/; revision=1138015
This commit is contained in:
Hugo Pereira Da Costa 2010-06-15 00:05:08 +00:00
parent 62b9c59da6
commit e1669806ef

View file

@ -957,6 +957,9 @@ namespace Oxygen
if( itemCount == 1 )
{
// no title outline if the window caption is empty
if( !caption.trimmed().isEmpty() )
{
if( itemData_.isAnimated() ) {
textRect = titleBoundingRect( painter->font(), textRect, caption );
@ -977,6 +980,8 @@ namespace Oxygen
}
}
} else if( active ) {
// in multiple tabs render title outline in all cases