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
QQuickItemViewChangeSet Class Reference

#include <qquickitemview_p_p.h>

+ Collaboration diagram for QQuickItemViewChangeSet:

Public Member Functions

 QQuickItemViewChangeSet ()
 
bool hasPendingChanges () const
 
void prepare (int currentIndex, int count)
 
void reset ()
 
void applyChanges (const QQmlChangeSet &changeSet)
 
void applyBufferedChanges (const QQuickItemViewChangeSet &other)
 

Public Attributes

int itemCount
 
int newCurrentIndex
 
QQmlChangeSet pendingChanges
 
QMultiHash< QQmlChangeSet::MoveKey, FxViewItem * > removedItems
 
bool active: 1
 
bool currentChanged: 1
 
bool currentRemoved: 1
 

Detailed Description

Definition at line 46 of file qquickitemview_p_p.h.

Constructor & Destructor Documentation

◆ QQuickItemViewChangeSet()

QQuickItemViewChangeSet::QQuickItemViewChangeSet ( )

Definition at line 26 of file qquickitemview.cpp.

References reset().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyBufferedChanges()

void QQuickItemViewChangeSet::applyBufferedChanges ( const QQuickItemViewChangeSet & other)

Definition at line 82 of file qquickitemview.cpp.

References QQmlChangeSet::apply(), currentChanged, currentRemoved, itemCount, newCurrentIndex, other(), and pendingChanges.

Referenced by QQuickItemViewPrivate::applyModelChanges().

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

◆ applyChanges()

void QQuickItemViewChangeSet::applyChanges ( const QQmlChangeSet & changeSet)

Definition at line 37 of file qquickitemview.cpp.

References QQmlChangeSet::apply(), currentChanged, currentRemoved, i, QQmlChangeSet::inserts(), itemCount, newCurrentIndex, pendingChanges, qMin(), and QQmlChangeSet::removes().

+ Here is the call graph for this function:

◆ hasPendingChanges()

bool QQuickItemViewChangeSet::hasPendingChanges ( ) const

Definition at line 32 of file qquickitemview.cpp.

References QQmlChangeSet::isEmpty(), and pendingChanges.

Referenced by QQuickItemViewPrivate::applyModelChanges(), QQuickItemViewPrivate::applyPendingChanges(), and QQuickItemViewPrivate::refill().

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

◆ prepare()

void QQuickItemViewChangeSet::prepare ( int currentIndex,
int count )

Definition at line 94 of file qquickitemview.cpp.

References active, itemCount, newCurrentIndex, and reset().

+ Here is the call graph for this function:

◆ reset()

void QQuickItemViewChangeSet::reset ( )

Definition at line 104 of file qquickitemview.cpp.

References active, QQmlChangeSet::clear(), QMultiHash< Key, T >::clear(), currentChanged, currentRemoved, itemCount, newCurrentIndex, pendingChanges, and removedItems.

Referenced by QQuickItemViewChangeSet(), QQuickItemViewPrivate::applyModelChanges(), QQuickItemViewPrivate::clear(), prepare(), and QQuickItemViewPrivate::refill().

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

Member Data Documentation

◆ active

bool QQuickItemViewChangeSet::active

Definition at line 64 of file qquickitemview_p_p.h.

Referenced by prepare(), QQuickItemViewPrivate::refill(), and reset().

◆ currentChanged

bool QQuickItemViewChangeSet::currentChanged

◆ currentRemoved

bool QQuickItemViewChangeSet::currentRemoved

◆ itemCount

int QQuickItemViewChangeSet::itemCount

Definition at line 59 of file qquickitemview_p_p.h.

Referenced by applyBufferedChanges(), applyChanges(), prepare(), and reset().

◆ newCurrentIndex

int QQuickItemViewChangeSet::newCurrentIndex

◆ pendingChanges

QQmlChangeSet QQuickItemViewChangeSet::pendingChanges

◆ removedItems


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