QPersistentModelIndex Class Reference

QPersistentModelIndex Class Reference

#include <qabstractitemmodel.h>

Class Description

Definition at line 107 of file qabstractitemmodel.h.

Public Member Functions

 QPersistentModelIndex ()
 
 QPersistentModelIndex (const QModelIndex &index)
 
 QPersistentModelIndex (const QPersistentModelIndex &other)
 
 ~QPersistentModelIndex ()
 
bool operator< (const QPersistentModelIndex &other) const
 
bool operator== (const QPersistentModelIndex &other) const
 
bool operator!= (const QPersistentModelIndex &other) const
 
QPersistentModelIndexoperator= (const QPersistentModelIndex &other)
 
bool operator== (const QModelIndex &other) const
 
bool operator!= (const QModelIndex &other) const
 
QPersistentModelIndexoperator= (const QModelIndex &other)
 
 operator const QModelIndex & () const
 
int row () const
 
int column () const
 
voidinternalPointer () const
 
qint64 internalId () const
 
QModelIndex parent () const
 
QModelIndex sibling (int row, int column) const
 
QModelIndex child (int row, int column) const
 
QVariant data (int role=Qt::DisplayRole) const
 
Qt::ItemFlags flags () const
 
const QAbstractItemModelmodel () const
 
bool isValid () const
 

Friends

uint qHash (const QPersistentModelIndex &)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QPersistentModelIndex &)
 

Constructor & Destructor Documentation

QPersistentModelIndex ( const QModelIndex index)

Member Function Documentation

bool operator< ( const QPersistentModelIndex other) const
bool operator== ( const QPersistentModelIndex other) const
bool operator!= ( const QPersistentModelIndex other) const
inline

Definition at line 116 of file qabstractitemmodel.h.

117  { return !operator==(other); }
bool operator==(const QPersistentModelIndex &other) const
QPersistentModelIndex& operator= ( const QPersistentModelIndex other)
bool operator== ( const QModelIndex other) const
bool operator!= ( const QModelIndex other) const
QPersistentModelIndex& operator= ( const QModelIndex other)
operator const QModelIndex & ( ) const
int row ( ) const
int column ( ) const
void* internalPointer ( ) const
qint64 internalId ( ) const
QModelIndex parent ( ) const
QModelIndex sibling ( int  row,
int  column 
) const
QModelIndex child ( int  row,
int  column 
) const
QVariant data ( int  role = Qt::DisplayRole) const
Qt::ItemFlags flags ( ) const
const QAbstractItemModel* model ( ) const
bool isValid ( ) const

Friends And Related Function Documentation

uint qHash ( const QPersistentModelIndex index)
friend

Definition at line 143 of file qabstractitemmodel.h.

144 { return qHash(index.d); }
friend uint qHash(const QPersistentModelIndex &)
Q_CORE_EXPORT QDebug operator<< ( QDebug  ,
const QPersistentModelIndex  
)
friend

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