setTarget -> targetReached, setTargetItem -> targetItemReached
svn path=/trunk/KDE/kdelibs/; revision=1032017
This commit is contained in:
parent
70b3847210
commit
bd5359ca8f
@ -115,7 +115,7 @@ void ItemBackground::setTarget(const QRectF &newGeometry)
|
||||
setGeometry(d->newGeometry);
|
||||
targetReached(newGeometry);
|
||||
if (d->target) {
|
||||
emit targetReached(d->target);
|
||||
emit targetItemReached(d->target);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -135,7 +135,7 @@ void ItemBackground::setTarget(const QRectF &newGeometry)
|
||||
show();
|
||||
targetReached(newGeometry);
|
||||
if (d->target) {
|
||||
emit targetReached(d->target);
|
||||
emit targetItemReached(d->target);
|
||||
}
|
||||
} else {
|
||||
d->fading = false;
|
||||
@ -284,7 +284,7 @@ void ItemBackgroundPrivate::animationUpdate(qreal progress)
|
||||
if ((!fading) || (fadeIn)) {
|
||||
emit q->targetReached(newGeometry);
|
||||
if (target) {
|
||||
emit q->targetReached(target);
|
||||
emit q->targetItemReached(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ Q_SIGNALS:
|
||||
* Emitted when the target has been reached. Useful to consider this instead of
|
||||
* the corresponding hoverEnterEvent;
|
||||
*/
|
||||
void targetReached(QGraphicsItem *);
|
||||
void targetItemReached(QGraphicsItem *);
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user