changed back 'setDirty' method into 'update' method. kwin/paintRedirector should be fixed though, so that buttons created after the deco is registered for redirection are properly accounted for

svn path=/trunk/KDE/kdebase/workspace/; revision=1036114
icc-effect-5.14.5
Hugo Pereira Da Costa 2009-10-16 16:25:02 +00:00
parent e251d9316f
commit 88cfb2df63
2 changed files with 5 additions and 13 deletions

View File

@ -67,8 +67,8 @@ namespace Oxygen
timeLine_.setFrameRange( 0, 1000 );
timeLine_.setCurveShape( QTimeLine::EaseInOutCurve );
connect( &timeLine_, SIGNAL( frameChanged( int ) ), SLOT( setDirty() ) );
connect( &timeLine_, SIGNAL( finished() ), SLOT( setDirty() ) );
connect( &timeLine_, SIGNAL( frameChanged( int ) ), SLOT( update() ) );
connect( &timeLine_, SIGNAL( finished() ), SLOT( update() ) );
}
@ -138,7 +138,7 @@ namespace Oxygen
}
status_ = Oxygen::Normal;
setDirty();
update();
}
@ -148,7 +148,7 @@ namespace Oxygen
kDebug(1212) << endl;
status_ = Oxygen::Pressed;
setDirty();
update();
KCommonDecorationButton::mousePressEvent(e);
}
@ -159,7 +159,7 @@ namespace Oxygen
kDebug(1212) << endl;
status_ = ( rect().contains( e->pos() ) ) ? Oxygen::Hovered:Oxygen::Normal;
setDirty();
update();
KCommonDecorationButton::mouseReleaseEvent(e);
}

View File

@ -113,14 +113,6 @@ namespace Oxygen
//! true if button is active
bool isActive( void ) const;
protected slots:
//! update
/*! for some reason calling "update()" directly does not work for buttons that
are created directly by the client */
void setDirty( void )
{ if( parentWidget() ) parentWidget()->update( geometry() ); }
private:
//! parent client