42 #ifndef QABSTRACTPROXYMODEL_H 43 #define QABSTRACTPROXYMODEL_H 45 #include <QtCore/qabstractitemmodel.h> 53 #ifndef QT_NO_PROXYMODEL 107 #endif // QT_NO_PROXYMODEL 113 #endif // QABSTRACTPROXYMODEL_H The QVariant class acts like a union for the most common Qt data types.
virtual QSize span(const QModelIndex &index) const
Returns the row and column span of the item represented by index.
#define QT_END_NAMESPACE
This macro expands to.
virtual QMap< int, QVariant > itemData(const QModelIndex &index) const
Returns a map with values for all predefined roles in the model for the item at the given index...
virtual bool setItemData(const QModelIndex &index, const QMap< int, QVariant > &roles)
Sets the role data for the item at index to the associated value in roles, for every Qt::ItemDataRole...
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Sets the role data for the item at index to value.
virtual QStringList mimeTypes() const
Returns a list of MIME types that can be used to describe a list of model indexes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
virtual Qt::DropActions supportedDropActions() const
Returns the drop actions supported by this model.
The QObject class is the base class of all Qt objects.
virtual bool submit()
Lets the model know that it should submit cached information to permanent storage.
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Returns the data for the given role and section in the header with the specified orientation.
virtual void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
Sorts the model by column in the given order.
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Returns the item flags for the given index.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual bool hasChildren(const QModelIndex &parent=QModelIndex()) const
Returns true if parent has any children; otherwise returns false.
The QStringList class provides a list of strings.
virtual QModelIndex buddy(const QModelIndex &index) const
Returns a model index for the buddy of the item represented by index.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
Returns the data stored under the given role for the item referred to by the index.
virtual bool canFetchMore(const QModelIndex &parent) const
Returns true if there is more data available for parent; otherwise returns false. ...
The QMimeData class provides a container for data that records information about its MIME type...
The QAbstractItemModel class provides the abstract interface for item model classes.
The QAbstractProxyModel class provides a base class for proxy item models that can do sorting...
virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
Sets the data for the given role and section in the header with the specified orientation to the valu...
virtual void fetchMore(const QModelIndex &parent)
Fetches any available data for the items with the parent specified by the parent index.
The QItemSelection class manages information about selected items in a model.
The QModelIndex class is used to locate data in a data model.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
virtual void revert()
Lets the model know that it should discard cached information.
The QMap class is a template class that provides a skip-list-based dictionary.
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
Returns an object that contains serialized items of data corresponding to the list of indexes specifi...