Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QPersistentModelIndexData Class Reference

#include <qabstractitemmodel_p.h>

+ Collaboration diagram for QPersistentModelIndexData:

Public Member Functions

 QPersistentModelIndexData ()
 
 QPersistentModelIndexData (const QModelIndex &idx)
 

Static Public Member Functions

static QPersistentModelIndexDatacreate (const QModelIndex &index)
 
static void destroy (QPersistentModelIndexData *data)
 

Public Attributes

QModelIndex index
 
QAtomicInt ref
 

Detailed Description

Definition at line 29 of file qabstractitemmodel_p.h.

Constructor & Destructor Documentation

◆ QPersistentModelIndexData() [1/2]

QPersistentModelIndexData::QPersistentModelIndexData ( )
inline

Definition at line 32 of file qabstractitemmodel_p.h.

◆ QPersistentModelIndexData() [2/2]

QPersistentModelIndexData::QPersistentModelIndexData ( const QModelIndex idx)
inline

Definition at line 33 of file qabstractitemmodel_p.h.

Member Function Documentation

◆ create()

QT_BEGIN_NAMESPACE QPersistentModelIndexData * QPersistentModelIndexData::create ( const QModelIndex index)
static

Definition at line 30 of file qabstractitemmodel.cpp.

References QMultiHash< Key, T >::cend(), QMultiHash< Key, T >::constFind(), d, QMultiHash< Key, T >::insert(), it, model, and Q_ASSERT.

Referenced by QPersistentModelIndex::QPersistentModelIndex(), and QPersistentModelIndex::operator=().

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

◆ destroy()

void QPersistentModelIndexData::destroy ( QPersistentModelIndexData data)
static

Definition at line 47 of file qabstractitemmodel.cpp.

References model, and Q_ASSERT.

Referenced by QPersistentModelIndex::~QPersistentModelIndex(), QPersistentModelIndex::operator=(), and QPersistentModelIndex::operator=().

+ Here is the caller graph for this function:

Member Data Documentation

◆ index

◆ ref


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