QtCore/qabstractitemmodel.h File Reference

qabstractitemmodel.h File Reference
#include <QtCore/qvariant.h>
#include <QtCore/qobject.h>
#include <QtCore/qhash.h>

Classes

class  QModelIndex
 
class  QPersistentModelIndex
 
class  QList< T >
 
class  QMap< Key, T >
 
class  QAbstractItemModel
 
class  QAbstractTableModel
 
class  QAbstractListModel
 

Typedefs

typedef QList< QModelIndexQModelIndexList
 

Functions

 Q_DECLARE_TYPEINFO (QModelIndex, Q_MOVABLE_TYPE)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QModelIndex &)
 
 Q_DECLARE_TYPEINFO (QPersistentModelIndex, Q_MOVABLE_TYPE)
 
uint qHash (const QPersistentModelIndex &index)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QPersistentModelIndex &)
 
uint qHash (const QModelIndex &index)
 

Typedef Documentation

Definition at line 151 of file qabstractitemmodel.h.

Function Documentation

Q_DECLARE_TYPEINFO ( QModelIndex  ,
Q_MOVABLE_TYPE   
)
Q_CORE_EXPORT QDebug operator<< ( QDebug  ,
const QModelIndex  
)
Q_DECLARE_TYPEINFO ( QPersistentModelIndex  ,
Q_MOVABLE_TYPE   
)
uint qHash ( const QPersistentModelIndex index)
inline

Definition at line 143 of file qabstractitemmodel.h.

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

Definition at line 407 of file qabstractitemmodel.h.

408 { return uint((index.row() << 4) + index.column() + index.internalId()); }
int row() const
qint64 internalId() const
int column() const

Go to the source code of this file.