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
MutableModelIterator Class Reference
+ Collaboration diagram for MutableModelIterator:

Public Member Functions

 MutableModelIterator (QQmlInstanceModel *model, int iBegin, int iEnd)
 
bool hasNext () const
 
void next ()
 
 ~MutableModelIterator ()
 
void disconnect ()
 

Public Attributes

int index = 0
 
int idxEnd
 
unsigned removedAtIndex: 1
 
unsigned backwards: 1
 

Detailed Description

Definition at line 372 of file qquicklistview.cpp.

Constructor & Destructor Documentation

◆ MutableModelIterator()

MutableModelIterator::MutableModelIterator ( QQmlInstanceModel * model,
int iBegin,
int iEnd )
inline

Definition at line 374 of file qquicklistview.cpp.

References QObject::connect(), QAbstractItemModel::count, idxEnd, index, QQmlChangeSet::inserts(), model, QQmlInstanceModel::modelUpdated(), removedAtIndex, and QQmlChangeSet::removes().

+ Here is the call graph for this function:

◆ ~MutableModelIterator()

MutableModelIterator::~MutableModelIterator ( )
inline

Definition at line 406 of file qquicklistview.cpp.

References disconnect().

+ Here is the call graph for this function:

Member Function Documentation

◆ disconnect()

void MutableModelIterator::disconnect ( )
inline

Definition at line 411 of file qquicklistview.cpp.

References QMetaObject::Connection(), and QObject::disconnect().

Referenced by ~MutableModelIterator().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasNext()

bool MutableModelIterator::hasNext ( ) const
inline

Definition at line 400 of file qquicklistview.cpp.

References backwards, and idxEnd.

◆ next()

void MutableModelIterator::next ( )
inline

Definition at line 404 of file qquicklistview.cpp.

References backwards.

Member Data Documentation

◆ backwards

unsigned MutableModelIterator::backwards

Definition at line 421 of file qquicklistview.cpp.

Referenced by hasNext(), and next().

◆ idxEnd

int MutableModelIterator::idxEnd

Definition at line 419 of file qquicklistview.cpp.

Referenced by MutableModelIterator(), and hasNext().

◆ index

int MutableModelIterator::index = 0

Definition at line 418 of file qquicklistview.cpp.

Referenced by MutableModelIterator().

◆ removedAtIndex

unsigned MutableModelIterator::removedAtIndex

Definition at line 420 of file qquicklistview.cpp.

Referenced by MutableModelIterator().


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