void QQuickImage::setFillMode(FillMode mode) { Q_D(QQuickImage); if (d->fillMode == mode) return; d->fillMode = mode; update(); updatePaintedGeometry(); emit fillModeChanged(); }
void QQuickImage::setHorizontalAlignment(HAlignment align) { Q_D(QQuickImage); if (d->hAlign == align) return; d->hAlign = align; update(); updatePaintedGeometry(); emit horizontalAlignmentChanged(align); }
void QQuickImage::setVerticalAlignment(VAlignment align) { Q_D(QQuickImage); if (d->vAlign == align) return; d->vAlign = align; update(); updatePaintedGeometry(); emit verticalAlignmentChanged(align); }
void QDeclarativeImage::pixmapChange() { Q_D(QDeclarativeImage); // PreserveAspectFit calculates the implicit size differently so we // don't call our superclass pixmapChange(), since that would // result in the implicit size being set incorrectly, then updated // in updatePaintedGeometry() if (d->fillMode != PreserveAspectFit) QDeclarativeImageBase::pixmapChange(); updatePaintedGeometry(); }
void QQuickImage::pixmapChange() { Q_D(QQuickImage); // PreserveAspectFit calculates the implicit size differently so we // don't call our superclass pixmapChange(), since that would // result in the implicit size being set incorrectly, then updated // in updatePaintedGeometry() if (d->fillMode != PreserveAspectFit) QQuickImageBase::pixmapChange(); updatePaintedGeometry(); d->pixmapChanged = true; // When the pixmap changes, such as being deleted, we need to update the textures update(); }
void QQuickImage::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) { QQuickImageBase::geometryChanged(newGeometry, oldGeometry); updatePaintedGeometry(); }
void QDeclarativeImage::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) { QDeclarativeImageBase::geometryChanged(newGeometry, oldGeometry); updatePaintedGeometry(); }
void QDeclarativeImage::pixmapChange() { updatePaintedGeometry(); }