void ImageBase::setAsynchronous(bool async) { if (async != this->asynchronous()) { Q_D(ImageBase); d->asynchronous = async; emit asynchronousChanged(); } }
void QQuickImageBase::setAsynchronous(bool async) { Q_D(QQuickImageBase); if (d->async != async) { d->async = async; emit asynchronousChanged(); } }
void QDeclarativeImageBase::setAsynchronous(bool async) { Q_D(QDeclarativeImageBase); if (d->async != async) { d->async = async; emit asynchronousChanged(); } }
void Quick3DNodeInstantiator::setAsync(bool newVal) { Q_D(Quick3DNodeInstantiator); if (newVal == d->m_async) return; d->m_async = newVal; emit asynchronousChanged(); }
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 QQuickLoader::setAsynchronous(bool a) { Q_D(QQuickLoader); if (d->asynchronous == a) return; d->asynchronous = a; emit asynchronousChanged(); }