correct slots
svn path=/trunk/KDE/kdelibs/; revision=951381
This commit is contained in:
parent
97556b8bf5
commit
43e5ee5d15
@ -2302,13 +2302,15 @@ void AppletOverlayWidget::destroy()
|
|||||||
connect(Animator::self(),
|
connect(Animator::self(),
|
||||||
SIGNAL(animationFinished(QGraphicsItem*,Plasma::Animator::Animation)),
|
SIGNAL(animationFinished(QGraphicsItem*,Plasma::Animator::Animation)),
|
||||||
this,
|
this,
|
||||||
SLOT(overlayAnimationCompleteComplete(QGraphicsItem*,Plasma::Animator::Animation)));
|
SLOT(overlayAnimationComplete(QGraphicsItem*,Plasma::Animator::Animation)));
|
||||||
Animator::self()->animateItem(this, Animator::DisappearAnimation);
|
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,
|
void AppletOverlayWidget::paint(QPainter *painter,
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <kactioncollection.h>
|
#include <kactioncollection.h>
|
||||||
|
|
||||||
|
#include "plasma/animator.h"
|
||||||
#include "plasma/private/dataengineconsumer_p.h"
|
#include "plasma/private/dataengineconsumer_p.h"
|
||||||
|
|
||||||
class KKeySequenceWidget;
|
class KKeySequenceWidget;
|
||||||
@ -50,7 +51,7 @@ protected:
|
|||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void overlayAnimationComplete();
|
void overlayAnimationComplete(QGraphicsItem *item, Plasma::Animator::Animation);
|
||||||
};
|
};
|
||||||
|
|
||||||
class AppletPrivate : public DataEngineConsumer
|
class AppletPrivate : public DataEngineConsumer
|
||||||
|
Loading…
Reference in New Issue
Block a user