![]() |
Qt 6.x
The Qt SDK
|
#include <qqmldelegatemodel_p_p.h>
Collaboration diagram for QQmlReusableDelegateModelItemsPool:Public Member Functions | |
| void | insertItem (QQmlDelegateModelItem *modelItem) |
| QQmlDelegateModelItem * | takeItem (const QQmlComponent *delegate, int newIndexHint) |
| void | reuseItem (QQmlDelegateModelItem *item, int newModelIndex) |
| void | drain (int maxPoolTime, std::function< void(QQmlDelegateModelItem *cacheItem)> releaseItem) |
| int | size () |
Definition at line 166 of file qqmldelegatemodel_p_p.h.
| void QQmlReusableDelegateModelItemsPool::drain | ( | int | maxPoolTime, |
| std::function< void(QQmlDelegateModelItem *cacheItem)> | releaseItem | ||
| ) |
Definition at line 3881 of file qqmldelegatemodel.cpp.
References QSet< T >::begin(), QSet< T >::end(), QSet< T >::erase(), it, and qCDebug.
Referenced by QQmlDelegateModelPrivate::drainReusableItemsPool(), and QQmlTableInstanceModel::drainReusableItemsPool().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlReusableDelegateModelItemsPool::insertItem | ( | QQmlDelegateModelItem * | modelItem | ) |
Definition at line 3790 of file qqmldelegatemodel.cpp.
References QQmlDelegateModelItem::delegate, QQmlDelegateModelItem::incubationTask, QQmlDelegateModelItem::isObjectReferenced(), QQmlDelegateModelItem::modelColumn(), QQmlDelegateModelItem::modelIndex(), QQmlDelegateModelItem::modelRow(), QQmlDelegateModelItem::object, QQmlDelegateModelItem::poolTime, Q_ASSERT, and qCDebug.
Referenced by QQmlDelegateModelPrivate::release(), and QQmlTableInstanceModel::release().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlReusableDelegateModelItemsPool::reuseItem | ( | QQmlDelegateModelItem * | item, |
| int | newModelIndex | ||
| ) |
|
inline |
Definition at line 173 of file qqmldelegatemodel_p_p.h.
| QQmlDelegateModelItem * QQmlReusableDelegateModelItemsPool::takeItem | ( | const QQmlComponent * | delegate, |
| int | newIndexHint | ||
| ) |
Definition at line 3851 of file qqmldelegatemodel.cpp.
References QSet< T >::begin(), QSet< T >::end(), QSet< T >::erase(), it, and qCDebug.
Referenced by QQmlDelegateModelPrivate::object().
Here is the call graph for this function:
Here is the caller graph for this function: