Qt 6.x
The Qt SDK
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 370 of file qquicklistview.cpp.

Constructor & Destructor Documentation

◆ MutableModelIterator()

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

Definition at line 372 of file qquicklistview.cpp.

References QObject::connect(), 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 404 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 409 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 398 of file qquicklistview.cpp.

References backwards, and idxEnd.

◆ next()

void MutableModelIterator::next ( )
inline

Definition at line 402 of file qquicklistview.cpp.

References backwards.

Member Data Documentation

◆ backwards

unsigned MutableModelIterator::backwards

Definition at line 419 of file qquicklistview.cpp.

Referenced by hasNext(), and next().

◆ idxEnd

int MutableModelIterator::idxEnd

Definition at line 417 of file qquicklistview.cpp.

Referenced by MutableModelIterator(), and hasNext().

◆ index

int MutableModelIterator::index = 0

Definition at line 416 of file qquicklistview.cpp.

Referenced by MutableModelIterator().

◆ removedAtIndex

unsigned MutableModelIterator::removedAtIndex

Definition at line 418 of file qquicklistview.cpp.

Referenced by MutableModelIterator().


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