Tried improve performances during title transitions by triggering updates of the title area only.
svn path=/trunk/KDE/kdebase/workspace/; revision=1154145
This commit is contained in:
parent
111db93e05
commit
8762a1ac55
3 changed files with 11 additions and 6 deletions
|
@ -124,7 +124,7 @@ namespace Oxygen
|
||||||
|
|
||||||
// title animation data
|
// title animation data
|
||||||
titleAnimationData_.data()->initialize();
|
titleAnimationData_.data()->initialize();
|
||||||
connect( titleAnimationData_.data(), SIGNAL( pixmapsChanged() ), widget(), SLOT( update( void ) ) );
|
connect( titleAnimationData_.data(), SIGNAL( pixmapsChanged() ), SLOT( updateTitleRect() ) );
|
||||||
|
|
||||||
// lists
|
// lists
|
||||||
connect( itemData_.animation().data(), SIGNAL( finished() ), this, SLOT( clearTargetItem() ) );
|
connect( itemData_.animation().data(), SIGNAL( finished() ), this, SLOT( clearTargetItem() ) );
|
||||||
|
@ -1695,8 +1695,8 @@ namespace Oxygen
|
||||||
|
|
||||||
itemData_.setDirty( true );
|
itemData_.setDirty( true );
|
||||||
moveItemInClientGroup( from, itemClicked );
|
moveItemInClientGroup( from, itemClicked );
|
||||||
widget()->update();
|
updateTitleRect();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
setForceActive( true );
|
setForceActive( true );
|
||||||
|
|
|
@ -204,6 +204,12 @@ namespace Oxygen
|
||||||
|
|
||||||
//! resize event
|
//! resize event
|
||||||
virtual void resizeEvent(QResizeEvent *e);
|
virtual void resizeEvent(QResizeEvent *e);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
//! triggers widget update in titleRect only
|
||||||
|
void updateTitleRect( void )
|
||||||
|
{ widget()->update( titleRect() ); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -365,7 +371,7 @@ namespace Oxygen
|
||||||
//! clear force active flag
|
//! clear force active flag
|
||||||
void clearForceActive( void )
|
void clearForceActive( void )
|
||||||
{ if( isActive() ) setForceActive( false ); }
|
{ if( isActive() ) setForceActive( false ); }
|
||||||
|
|
||||||
//! title bounding rects
|
//! title bounding rects
|
||||||
/*! calculate and return title bounding rects in case of tabbed window */
|
/*! calculate and return title bounding rects in case of tabbed window */
|
||||||
void updateItemBoundingRects( bool alsoUpdate = true );
|
void updateItemBoundingRects( bool alsoUpdate = true );
|
||||||
|
|
|
@ -283,7 +283,6 @@ namespace Oxygen
|
||||||
{
|
{
|
||||||
|
|
||||||
// move close buttons
|
// move close buttons
|
||||||
// this should move to ClientGroupItemDataList
|
|
||||||
if( alsoUpdate ) client_.widget()->setUpdatesEnabled( false );
|
if( alsoUpdate ) client_.widget()->setUpdatesEnabled( false );
|
||||||
for( int index = 0; index < count(); index++ )
|
for( int index = 0; index < count(); index++ )
|
||||||
{
|
{
|
||||||
|
@ -312,7 +311,7 @@ namespace Oxygen
|
||||||
if( alsoUpdate )
|
if( alsoUpdate )
|
||||||
{
|
{
|
||||||
client_.widget()->setUpdatesEnabled( true );
|
client_.widget()->setUpdatesEnabled( true );
|
||||||
client_.widget()->update();
|
client_.updateTitleRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue