Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 167 of file qqmldelegatemodel_p_p.h.

Member Function Documentation

◆ drain()

void QQmlReusableDelegateModelItemsPool::drain ( int maxPoolTime,
std::function< void(QQmlDelegateModelItem *cacheItem)> releaseItem )

Definition at line 3921 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 3830 of file qqmldelegatemodel.cpp.

References Q_ASSERT, and qCDebug.

Referenced by QQmlDelegateModelPrivate::release(), and QQmlTableInstanceModel::release().

+ Here is the caller graph for this function:

◆ reuseItem()

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

◆ size()

int QQmlReusableDelegateModelItemsPool::size ( )
inline

Definition at line 174 of file qqmldelegatemodel_p_p.h.

◆ takeItem()

QQmlDelegateModelItem * QQmlReusableDelegateModelItemsPool::takeItem ( const QQmlComponent * delegate,
int newIndexHint )

Definition at line 3891 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: