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);
|
setGeometry(d->newGeometry);
|
||||||
targetReached(newGeometry);
|
targetReached(newGeometry);
|
||||||
if (d->target) {
|
if (d->target) {
|
||||||
emit targetReached(d->target);
|
emit targetItemReached(d->target);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ void ItemBackground::setTarget(const QRectF &newGeometry)
|
|||||||
show();
|
show();
|
||||||
targetReached(newGeometry);
|
targetReached(newGeometry);
|
||||||
if (d->target) {
|
if (d->target) {
|
||||||
emit targetReached(d->target);
|
emit targetItemReached(d->target);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
d->fading = false;
|
d->fading = false;
|
||||||
@ -284,7 +284,7 @@ void ItemBackgroundPrivate::animationUpdate(qreal progress)
|
|||||||
if ((!fading) || (fadeIn)) {
|
if ((!fading) || (fadeIn)) {
|
||||||
emit q->targetReached(newGeometry);
|
emit q->targetReached(newGeometry);
|
||||||
if (target) {
|
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
|
* Emitted when the target has been reached. Useful to consider this instead of
|
||||||
* the corresponding hoverEnterEvent;
|
* the corresponding hoverEnterEvent;
|
||||||
*/
|
*/
|
||||||
void targetReached(QGraphicsItem *);
|
void targetItemReached(QGraphicsItem *);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user