itom  4.1.0
CheckableModelHelperPrivate Class Reference

Public Member Functions

 CheckableModelHelperPrivate (CheckableModelHelper &object)
 
void init ()
 
void setIndexCheckState (const QModelIndex &index, Qt::CheckState checkState)
 Set index checkstate and call propagate.
 
int indexDepth (const QModelIndex &modelIndex) const
 
void updateCheckState (const QModelIndex &modelIndex)
 Set the checkstate of the index based on its children and grand children.
 
void propagateCheckStateToChildren (const QModelIndex &modelIndex)
 Set the check state of the index to all its children and grand children.
 
Qt::CheckState checkState (const QModelIndex &index, bool *checkable) const
 
void setCheckState (const QModelIndex &index, Qt::CheckState newCheckState)
 
void forceCheckability (const QModelIndex &index)
 

Public Attributes

QPointer< QAbstractItemModel > Model
 
QModelIndex RootIndex
 
Qt::Orientation Orientation
 
bool HeaderIsUpdating
 
bool ItemsAreUpdating
 
bool ForceCheckability
 
int PropagateDepth
 
Qt::CheckState DefaultCheckState
 

Protected Attributes

CheckableModelHelper *const q_ptr
 

Private Member Functions

 Q_DECLARE_PUBLIC (CheckableModelHelper)
 

Member Function Documentation

int CheckableModelHelperPrivate::indexDepth ( const QModelIndex &  modelIndex) const

Return the depth in the model tree of the index. -1 if the index is the root element a header or a header, 0 if the index is a toplevel index, 1 if its parent is toplevel, 2 if its grandparent is toplevel, etc.

Member Data Documentation

int CheckableModelHelperPrivate::PropagateDepth

0 means no propagation -1 means unlimited propagation 1 means propagate to top-level indexes 2 means propagate to top-level and their children ...


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