cosmetics.

This commit is contained in:
Hugo Pereira Da Costa 2012-02-29 17:17:25 +01:00
parent 2eb4b96a8c
commit 0b1f4fc1d6

View file

@ -977,9 +977,9 @@ namespace Oxygen
QPixmap Client::renderTitleText( const QRect& rect, const QString& caption, const QColor& color, bool elide ) const
{
QPixmap out( rect.size() );
if( !rect.isValid() ) return QPixmap();
QPixmap out( rect.size() );
out.fill( Qt::transparent );
if( caption.isEmpty() || !color.isValid() ) return out;
@ -1689,7 +1689,6 @@ namespace Oxygen
} else if( !( isActive() && configuration().drawTitleOutline() ) ) {
geometry.adjust(
buttonsLeftWidth() + layoutMetric( LM_TitleEdgeLeft ) , 0,
-( buttonsRightWidth() + layoutMetric( LM_TitleEdgeRight )), 0 );