correct slots

svn path=/trunk/KDE/kdelibs/; revision=951381
This commit is contained in:
Aaron J. Seigo 2009-04-09 05:57:57 +00:00
parent 97556b8bf5
commit 43e5ee5d15
2 changed files with 7 additions and 4 deletions

View File

@ -2302,13 +2302,15 @@ void AppletOverlayWidget::destroy()
connect(Animator::self(),
SIGNAL(animationFinished(QGraphicsItem*,Plasma::Animator::Animation)),
this,
SLOT(overlayAnimationCompleteComplete(QGraphicsItem*,Plasma::Animator::Animation)));
SLOT(overlayAnimationComplete(QGraphicsItem*,Plasma::Animator::Animation)));
Animator::self()->animateItem(this, Animator::DisappearAnimation);
}
void AppletOverlayWidget::overlayAnimationComplete()
void AppletOverlayWidget::overlayAnimationComplete(QGraphicsItem *item, Plasma::Animator::Animation)
{
deleteLater();
if (item == this) {
deleteLater();
}
}
void AppletOverlayWidget::paint(QPainter *painter,

View File

@ -26,6 +26,7 @@
#include <kactioncollection.h>
#include "plasma/animator.h"
#include "plasma/private/dataengineconsumer_p.h"
class KKeySequenceWidget;
@ -50,7 +51,7 @@ protected:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
protected Q_SLOTS:
void overlayAnimationComplete();
void overlayAnimationComplete(QGraphicsItem *item, Plasma::Animator::Animation);
};
class AppletPrivate : public DataEngineConsumer