protected slots -> Q_PRIVATE_SLOT

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802610
This commit is contained in:
Aaron J. Seigo 2008-04-29 23:27:17 +00:00
parent 67f44e6f0a
commit 5482bad2ce
2 changed files with 17 additions and 14 deletions

View File

@ -164,6 +164,10 @@ class Animator::Private
}
void init(Animator *q);
void animatedItemDestroyed(QObject*);
void movingItemDestroyed(QObject*);
void animatedElementDestroyed(QObject*);
void customAnimReceiverDestroyed(QObject*);
AnimationDriver* driver;
int animId;
@ -205,10 +209,10 @@ Animator::~Animator()
delete d;
}
void Animator::animatedItemDestroyed(QObject* o)
void Animator::Private::animatedItemDestroyed(QObject* o)
{
//kDebug() << "testing for" << (void*)o;
QMutableMapIterator<QGraphicsItem*, AnimationState*> it(d->animatedItems);
QMutableMapIterator<QGraphicsItem*, AnimationState*> it(animatedItems);
while (it.hasNext()) {
it.next();
//kDebug() << "comparing against" << it.value()->qobj;
@ -220,9 +224,9 @@ void Animator::animatedItemDestroyed(QObject* o)
}
}
void Animator::movingItemDestroyed(QObject* o)
void Animator::Private::movingItemDestroyed(QObject* o)
{
QMutableMapIterator<QGraphicsItem*, MovementState*> it(d->movingItems);
QMutableMapIterator<QGraphicsItem*, MovementState*> it(movingItems);
while (it.hasNext()) {
it.next();
if (it.value()->qobj == o) {
@ -232,9 +236,9 @@ void Animator::movingItemDestroyed(QObject* o)
}
}
void Animator::animatedElementDestroyed(QObject* o)
void Animator::Private::animatedElementDestroyed(QObject* o)
{
QMutableMapIterator<int, ElementAnimationState*> it(d->animatedElements);
QMutableMapIterator<int, ElementAnimationState*> it(animatedElements);
while (it.hasNext()) {
it.next();
if (it.value()->qobj == o) {
@ -244,9 +248,9 @@ void Animator::animatedElementDestroyed(QObject* o)
}
}
void Animator::customAnimReceiverDestroyed(QObject* o)
void Animator::Private::customAnimReceiverDestroyed(QObject* o)
{
QMutableMapIterator<int, CustomAnimationState*> it(d->customAnims);
QMutableMapIterator<int, CustomAnimationState*> it(customAnims);
while (it.hasNext()) {
if (it.next().value()->receiver == o) {
delete it.value()->slot;

View File

@ -156,17 +156,16 @@ Q_SIGNALS:
protected:
void timerEvent(QTimerEvent *event);
protected Q_SLOTS:
void animatedItemDestroyed(QObject*);
void movingItemDestroyed(QObject*);
void animatedElementDestroyed(QObject*);
void customAnimReceiverDestroyed(QObject*);
private:
friend class AnimatorSingleton;
explicit Animator(QObject * parent = 0);
~Animator();
Q_PRIVATE_SLOT(d, void animatedItemDestroyed(QObject*));
Q_PRIVATE_SLOT(d, void movingItemDestroyed(QObject*));
Q_PRIVATE_SLOT(d, void animatedElementDestroyed(QObject*));
Q_PRIVATE_SLOT(d, void customAnimReceiverDestroyed(QObject*));
class Private;
Private * const d;
};