Kirigami2
delegaterecycler.cpp
95 DelegateRecyclerAttached *attached = qobject_cast<DelegateRecyclerAttached *>(qmlAttachedPropertiesObject<DelegateRecycler>(item, false));
151 ctx->setContextProperty(QString::fromUtf8(metaObj->property(i).name()), metaObj->property(i).read(modelObj));
169 ctx->setContextProperty(QString::fromUtf8(metaObj->property(i).name()), metaObj->property(i).read(modelObj));
192 qCWarning(KirigamiLog) << "Error: source components cannot be declared inside DelegateRecycler";
229 disconnect(m_item.data(), &QQuickItem::implicitWidthChanged, this, &DelegateRecycler::updateHints);
230 disconnect(m_item.data(), &QQuickItem::implicitHeightChanged, this, &DelegateRecycler::updateHints);
261 // Find the first parent that has a context object with a valid translationDomain property, i.e. is a KLocalizedContext
283 QMetaMethod updateSlot = metaObject()->method(metaObject()->indexOfSlot("syncModelProperties()"));
289 ctx->setContextProperty(QStringLiteral("model"), m_propertiesTracker->property("trackedModel"));
290 ctx->setContextProperty(QStringLiteral("modelData"), m_propertiesTracker->property("trackedModelData"));
291 ctx->setContextProperty(QStringLiteral("index"), m_propertiesTracker->property("trackedIndex"));
314 ctx->setContextProperties({QQmlContext::PropertyPair{QStringLiteral("modelData"), m_propertiesTracker->property("trackedModelData")},
315 QQmlContext::PropertyPair{QStringLiteral("index"), m_propertiesTracker->property("trackedIndex")},
316 QQmlContext::PropertyPair{QStringLiteral("delegateRecycler"), QVariant::fromValue<QObject *>(this)}});
318 DelegateRecyclerAttached *attached = qobject_cast<DelegateRecyclerAttached *>(qmlAttachedPropertiesObject<DelegateRecycler>(m_item, false));
326 connect(m_item.data(), &QQuickItem::implicitWidthChanged, this, &DelegateRecycler::updateHints);
327 connect(m_item.data(), &QQuickItem::implicitHeightChanged, this, &DelegateRecycler::updateHints);
QQmlComponent sourceComponent
The Component the actual delegates will be built from.
Definition: delegaterecycler.h:53
bool isValid() const const
QString fromUtf8(const char *str, int size)
T value() const const
void ref()
QHash::iterator find(const Key &key)
QObject * contextObject() const const
virtual QObject * create(QQmlContext *context)
void setContextProperty(const QString &name, QObject *value)
QMetaMethod notifySignal() const const
void deref()
KCRASH_EXPORT void setFlags(KCrash::CrashFlags flags)
void implicitHeightChanged()
bool hasNotifySignal() const const
QHash::iterator insert(const Key &key, const T &value)
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
void destroyed(QObject *obj)
QQmlContext * contextForObject(const QObject *object)
void deleteLater()
void setParentItem(QQuickItem *parent)
QQmlContext * parentContext() const const
int propertyCount() const const
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
virtual void focusInEvent(QFocusEvent *)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
void heightChanged()
QVariant read(const QObject *object) const const
virtual const QMetaObject * metaObject() const const
const char * name() const const
KGuiItem insert()
QMetaProperty property(int index) const const
int remove(const Key &key)
void implicitWidthChanged()
void setContextProperties(const QVector< QQmlContext::PropertyPair > &properties)
QSizeF size() const const
int propertyOffset() const const
ItemIsFocusScope
void setContextObject(QObject *object)
QObject * parent() const const
QHash::iterator end()
QQmlContext * creationContext() const const
QVariant property(const char *name) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.