void NemoThumbnailItem::setFillMode(FillMode mode) { if (m_fillMode != mode) { m_fillMode = mode; emit fillModeChanged(); updateThumbnail(true); } }
void QuickSubtitleItem::setFillMode(int value) { if (m_fillMode == value) return; m_fillMode = value; m_remap = true; emit fillModeChanged(); }
void TelegramImageElement::initImage() { if(p->image) return; QQmlEngine *engine = qmlEngine(this); QQmlContext *context = qmlContext(this); if(!engine || !context) return; QQmlComponent component(engine); QString qmlImageCreationCode = p->qmlImageCreationCode; if(qmlImageCreationCode.isEmpty()) qmlImageCreationCode = QString("import QtQuick %1\n" "Image { anchors.fill: parent; }").arg(p->qtQuickVersion); component.setData(qmlImageCreationCode.toUtf8(), QUrl()); QQuickItem *item = qobject_cast<QQuickItem *>(component.create(context)); if(!item) return; item->setParent(this); item->setParentItem(this); QHashIterator<QString, QVariant> i(p->properties); while(i.hasNext()) { i.next(); item->setProperty(i.key().toUtf8(), i.value()); } connect(item, SIGNAL(asynchronousChanged()), this, SIGNAL(asynchronousChanged())); #if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) connect(item, SIGNAL(autoTransformChanged()), this, SIGNAL(autoTransformChanged())); #endif connect(item, SIGNAL(cacheChanged()), this, SIGNAL(cacheChanged())); connect(item, SIGNAL(fillModeChanged()), this, SIGNAL(fillModeChanged())); connect(item, SIGNAL(mirrorChanged()), this, SIGNAL(mirrorChanged())); connect(item, SIGNAL(sourceSizeChanged()), this, SIGNAL(sourceSizeChanged())); p->image = item; }
void QuickFBORenderer::setFillMode(FillMode mode) { DPTR_D(QuickFBORenderer); if (d.fill_mode == mode) return; d_func().fill_mode = mode; updateRenderRect(); emit fillModeChanged(mode); }
void QQuickImage::setFillMode(FillMode mode) { Q_D(QQuickImage); if (d->fillMode == mode) return; d->fillMode = mode; update(); updatePaintedGeometry(); emit fillModeChanged(); }
void QImageItem::setFillMode(QImageItem::FillMode mode) { if (mode == m_fillMode) { return; } m_fillMode = mode; update(); emit fillModeChanged(); }
void QmlVlcVideoSurface::setFillMode( FillMode m ) { if( m_fillMode == m ) return; m_fillMode = m; update(); emit fillModeChanged( m ); }
void QQuickItemRenderer::setFillMode(FillMode mode) { DPTR_D(QQuickItemRenderer); if (d.fill_mode == mode) return; d_func().fill_mode = mode; if (d.fill_mode == Stretch) { setOutAspectRatioMode(RendererAspectRatio); } else {//compute out_rect fits video aspect ratio then compute again if crop setOutAspectRatioMode(VideoAspectRatio); } //m_geometryDirty = true; //update(); emit fillModeChanged(mode); }