void QDeclarativeAnchors::setVerticalCenterOffset(qreal offset) { Q_D(QDeclarativeAnchors); if (d->vCenterOffset == offset) return; d->vCenterOffset = offset; if(d->centerIn) d->centerInChanged(); else d->updateVerticalAnchors(); emit verticalCenterOffsetChanged(); }
void AnchorsBase::setVerticalCenterOffset(int verticalCenterOffset) { Q_D(AnchorsBase); if (d->verticalCenterOffset == verticalCenterOffset) { return; } d->verticalCenterOffset = verticalCenterOffset; if (isBinding(d->verticalCenter)) { updateVertical(); } emit verticalCenterOffsetChanged(verticalCenterOffset); }