diff --git a/clients/oxygen/oxygenbutton.cpp b/clients/oxygen/oxygenbutton.cpp index e334b46cc0..196290b049 100644 --- a/clients/oxygen/oxygenbutton.cpp +++ b/clients/oxygen/oxygenbutton.cpp @@ -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); } diff --git a/clients/oxygen/oxygenbutton.h b/clients/oxygen/oxygenbutton.h index cd42168731..89340b5c9b 100644 --- a/clients/oxygen/oxygenbutton.h +++ b/clients/oxygen/oxygenbutton.h @@ -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