diff --git a/widgets/itembackground.cpp b/widgets/itembackground.cpp index f0cdb86c0..09c7a1677 100644 --- a/widgets/itembackground.cpp +++ b/widgets/itembackground.cpp @@ -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); } } } diff --git a/widgets/itembackground.h b/widgets/itembackground.h index 541d50fdb..94e46f6c3 100644 --- a/widgets/itembackground.h +++ b/widgets/itembackground.h @@ -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: /**