Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlReusableDelegateModelItemsPool Class Reference

#include <qqmldelegatemodel_p_p.h>

+ Collaboration diagram for QQmlReusableDelegateModelItemsPool:

Public Member Functions

void insertItem (QQmlDelegateModelItem *modelItem)
 
QQmlDelegateModelItemtakeItem (const QQmlComponent *delegate, int newIndexHint)
 
void reuseItem (QQmlDelegateModelItem *item, int newModelIndex)
 
void drain (int maxPoolTime, std::function< void(QQmlDelegateModelItem *cacheItem)> releaseItem)
 
int size ()
 

Detailed Description

Definition at line 166 of file qqmldelegatemodel_p_p.h.

Member Function Documentation

◆ drain()

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:

◆ insertItem()

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:

◆ reuseItem()

void QQmlReusableDelegateModelItemsPool::reuseItem ( QQmlDelegateModelItem item,
int  newModelIndex 
)

◆ size()

int QQmlReusableDelegateModelItemsPool::size ( )
inline

Definition at line 173 of file qqmldelegatemodel_p_p.h.

◆ takeItem()

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:

The documentation for this class was generated from the following files: