void QDeclarativeAnchors::setHorizontalCenterOffset(qreal offset) { Q_D(QDeclarativeAnchors); if (d->hCenterOffset == offset) return; d->hCenterOffset = offset; if(d->centerIn) d->centerInChanged(); else d->updateHorizontalAnchors(); emit horizontalCenterOffsetChanged(); }
void AnchorsBase::setHorizontalCenterOffset(int horizontalCenterOffset) { Q_D(AnchorsBase); if (d->horizontalCenterOffset == horizontalCenterOffset) { return; } d->horizontalCenterOffset = horizontalCenterOffset; if (isBinding(d->horizontalCenter)) { updateHorizontal(); } emit horizontalCenterOffsetChanged(horizontalCenterOffset); }