QAbstractProxyModel Class Reference

QAbstractProxyModel Class Referenceabstract

#include <qabstractproxymodel.h>

Class Description

Definition at line 58 of file qabstractproxymodel.h.

+ Inheritance diagram for QAbstractProxyModel:

Public Member Functions

 QAbstractProxyModel (QObject *parent=0)
 
 ~QAbstractProxyModel ()
 
virtual void setSourceModel (QAbstractItemModel *sourceModel)
 
QAbstractItemModelsourceModel () const
 
virtual QModelIndex mapToSource (const QModelIndex &proxyIndex) const =0
 
virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const =0
 
virtual QItemSelection mapSelectionToSource (const QItemSelection &selection) const
 
virtual QItemSelection mapSelectionFromSource (const QItemSelection &selection) const
 
bool submit ()
 
void revert ()
 
QVariant data (const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
QMap< int, QVariantitemData (const QModelIndex &index) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
bool setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles)
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
 
QModelIndex buddy (const QModelIndex &index) const
 
bool canFetchMore (const QModelIndex &parent) const
 
void fetchMore (const QModelIndex &parent)
 
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder)
 
QSize span (const QModelIndex &index) const
 
bool hasChildren (const QModelIndex &parent=QModelIndex()) const
 
QMimeDatamimeData (const QModelIndexList &indexes) const
 
QStringList mimeTypes () const
 
Qt::DropActions supportedDropActions () const
 
- Public Member Functions inherited from QAbstractItemModel
 QAbstractItemModel (QObject *parent=0)
 
virtual ~QAbstractItemModel ()
 
bool hasIndex (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const =0
 
virtual QModelIndex parent (const QModelIndex &child) const =0
 
QModelIndex sibling (int row, int column, const QModelIndex &idx) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const =0
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const =0
 
virtual bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
Qt::DropActions supportedDragActions () const
 
void setSupportedDragActions (Qt::DropActions)
 
virtual bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
virtual bool insertColumns (int column, int count, const QModelIndex &parent=QModelIndex())
 
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
virtual bool removeColumns (int column, int count, const QModelIndex &parent=QModelIndex())
 
bool insertRow (int row, const QModelIndex &parent=QModelIndex())
 
bool insertColumn (int column, const QModelIndex &parent=QModelIndex())
 
bool removeRow (int row, const QModelIndex &parent=QModelIndex())
 
bool removeColumn (int column, const QModelIndex &parent=QModelIndex())
 
virtual QModelIndexList match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const
 
const QHash< int, QByteArray > & roleNames () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

 QAbstractProxyModel (QAbstractProxyModelPrivate &, QObject *parent)
 
- Protected Member Functions inherited from QAbstractItemModel
 QAbstractItemModel (QAbstractItemModelPrivate &dd, QObject *parent=0)
 
QModelIndex createIndex (int row, int column, void *data=0) const
 
QModelIndex createIndex (int row, int column, int id) const
 
QModelIndex createIndex (int row, int column, quint32 id) const
 
void encodeData (const QModelIndexList &indexes, QDataStream &stream) const
 
bool decodeData (int row, int column, const QModelIndex &parent, QDataStream &stream)
 
void beginInsertRows (const QModelIndex &parent, int first, int last)
 
void endInsertRows ()
 
void beginRemoveRows (const QModelIndex &parent, int first, int last)
 
void endRemoveRows ()
 
bool beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationRow)
 
void endMoveRows ()
 
void beginInsertColumns (const QModelIndex &parent, int first, int last)
 
void endInsertColumns ()
 
void beginRemoveColumns (const QModelIndex &parent, int first, int last)
 
void endRemoveColumns ()
 
bool beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationColumn)
 
void endMoveColumns ()
 
void reset ()
 
void beginResetModel ()
 
void endResetModel ()
 
void changePersistentIndex (const QModelIndex &from, const QModelIndex &to)
 
void changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to)
 
QModelIndexList persistentIndexList () const
 
void setRoleNames (const QHash< int, QByteArray > &roleNames)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Additional Inherited Members

- Public Slots inherited from QAbstractItemModel
- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QAbstractItemModel
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void headerDataChanged (Qt::Orientation orientation, int first, int last)
 
void layoutChanged ()
 
void layoutAboutToBeChanged ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Slots inherited from QAbstractItemModel
void resetInternalData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Constructor & Destructor Documentation

QAbstractProxyModel ( QObject parent = 0)
QAbstractProxyModel ( QAbstractProxyModelPrivate &  ,
QObject parent 
)
protected

Member Function Documentation

virtual void setSourceModel ( QAbstractItemModel sourceModel)
virtual
QAbstractItemModel* sourceModel ( ) const
virtual QModelIndex mapToSource ( const QModelIndex proxyIndex) const
pure virtual
virtual QModelIndex mapFromSource ( const QModelIndex sourceIndex) const
pure virtual
virtual QItemSelection mapSelectionToSource ( const QItemSelection selection) const
virtual
virtual QItemSelection mapSelectionFromSource ( const QItemSelection selection) const
virtual
bool submit ( )
virtual

Reimplemented from QAbstractItemModel.

void revert ( )
virtual

Reimplemented from QAbstractItemModel.

QVariant data ( const QModelIndex proxyIndex,
int  role = Qt::DisplayRole 
) const
virtual

Implements QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

QMap<int, QVariant> itemData ( const QModelIndex index) const
virtual

Reimplemented from QAbstractItemModel.

Qt::ItemFlags flags ( const QModelIndex index) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

bool setData ( const QModelIndex index,
const QVariant value,
int  role = Qt::EditRole 
)
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

bool setItemData ( const QModelIndex index,
const QMap< int, QVariant > &  roles 
)
virtual

Reimplemented from QAbstractItemModel.

bool setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant value,
int  role = Qt::EditRole 
)
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

QModelIndex buddy ( const QModelIndex index) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

bool canFetchMore ( const QModelIndex parent) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

void fetchMore ( const QModelIndex parent)
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

void sort ( int  column,
Qt::SortOrder  order = Qt::AscendingOrder 
)
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

QSize span ( const QModelIndex index) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

bool hasChildren ( const QModelIndex parent = QModelIndex()) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

QMimeData* mimeData ( const QModelIndexList indexes) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

QStringList mimeTypes ( ) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.

Qt::DropActions supportedDropActions ( ) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented in QSortFilterProxyModel.


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