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:
parent
62b9c59da6
commit
e1669806ef
1 changed files with 17 additions and 12 deletions
|
@ -957,6 +957,9 @@ namespace Oxygen
|
||||||
if( itemCount == 1 )
|
if( itemCount == 1 )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// no title outline if the window caption is empty
|
||||||
|
if( !caption.trimmed().isEmpty() )
|
||||||
|
{
|
||||||
if( itemData_.isAnimated() ) {
|
if( itemData_.isAnimated() ) {
|
||||||
|
|
||||||
textRect = titleBoundingRect( painter->font(), textRect, caption );
|
textRect = titleBoundingRect( painter->font(), textRect, caption );
|
||||||
|
@ -977,6 +980,8 @@ namespace Oxygen
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} else if( active ) {
|
} else if( active ) {
|
||||||
|
|
||||||
// in multiple tabs render title outline in all cases
|
// in multiple tabs render title outline in all cases
|
||||||
|
|
Loading…
Reference in a new issue