mark title transition as dirty when resizing client, to avoid flicker.

CCBUG: 298428
This commit is contained in:
Hugo Pereira Da Costa 2012-04-20 11:20:01 +02:00
parent 309868e803
commit f76b087b33

View file

@ -917,6 +917,7 @@ namespace Oxygen
renderTitleText( painter, rect, color, contrast ); renderTitleText( painter, rect, color, contrast );
} else if( !caption().isEmpty() ) { } else if( !caption().isEmpty() ) {
renderTitleText( painter, rect, caption(), color, contrast ); renderTitleText( painter, rect, caption(), color, contrast );
} }
@ -1407,6 +1408,10 @@ namespace Oxygen
// prepare item data updates // prepare item data updates
_itemData.setDirty( true ); _itemData.setDirty( true );
// mark title animation as dirty
if( event->oldSize().width() != event->size().width() )
{ _titleAnimationData->setDirty( true ); }
// resize backing store pixmap // resize backing store pixmap
if( !compositingActive() ) if( !compositingActive() )
{ _pixmap = QPixmap( event->size() ); } { _pixmap = QPixmap( event->size() ); }