18QQuickPopupAnchors::~QQuickPopupAnchors()
20 Q_D(
const QQuickPopupAnchors);
22 auto centerInPrivate = QQuickItemPrivate::get(d->centerIn);
23 centerInPrivate->removeItemChangeListener(
this, QQuickItemPrivate::Destroyed);
33void QQuickPopupAnchors::setCenterIn(QQuickItem *item)
35 Q_D(QQuickPopupAnchors);
36 if (item == d->centerIn)
40 auto centerInPrivate = QQuickItemPrivate::get(d->centerIn);
41 centerInPrivate->removeItemChangeListener(
this, QQuickItemPrivate::Destroyed);
47 auto centerInPrivate = QQuickItemPrivate::get(d->centerIn);
48 centerInPrivate->addItemChangeListener(
this, QQuickItemPrivate::Destroyed);
51 QQuickPopupPrivate::get(d->popup)->reposition();
53 emit centerInChanged();