qabstractitemmodel.h File Reference

#include <QtCore/qvariant.h>
#include <QtCore/qobject.h>
#include <QtCore/qhash.h>

Go to the source code of this file.

Classes

class   QModelIndex
class   QPersistentModelIndex
class   QAbstractItemModel
class   QAbstractTableModel
class   QAbstractListModel

Typedefs

typedef QList< QModelIndex QModelIndexList

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


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.

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

Definition at line 403 of file qabstractitemmodel.h.

{ return uint((index.row() << 4) + index.column() + index.internalId()); }