42 #ifndef QPROXYMODEL_P_H 43 #define QPROXYMODEL_P_H 57 #include "QtCore/qabstractitemmodel.h" 58 #include "private/qabstractitemmodel_p.h" 60 #ifndef QT_NO_PROXYMODEL 82 void _q_sourceRowsAboutToBeInserted(
const QModelIndex &
parent,
int first ,
int last);
83 void _q_sourceRowsInserted(
const QModelIndex &parent,
int first ,
int last);
84 void _q_sourceRowsAboutToBeRemoved(
const QModelIndex &parent,
int first,
int last);
85 void _q_sourceRowsRemoved(
const QModelIndex &parent,
int first,
int last);
86 void _q_sourceColumnsAboutToBeInserted(
const QModelIndex &parent,
int first,
int last);
87 void _q_sourceColumnsInserted(
const QModelIndex &parent,
int first,
int last);
88 void _q_sourceColumnsAboutToBeRemoved(
const QModelIndex &parent,
int first,
int last);
89 void _q_sourceColumnsRemoved(
const QModelIndex &parent,
int first,
int last);
98 #endif // QT_NO_PROXYMODEL 100 #endif // QPROXYMODEL_P_H The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
bool hasChildren(const QModelIndex &) const
Returns true if parent has any children; otherwise returns false.
The QObject class is the base class of all Qt objects.
QEmptyModel(QObject *parent=0)
QVariant data(const QModelIndex &, int) const
Returns the data stored under the given role for the item referred to by the index.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QProxyModel class provides support for processing data passed between another model and a view...
The QAbstractItemModel class provides the abstract interface for item model classes.
#define Q_DECLARE_PUBLIC(Class)
QObject * parent() const
Returns a pointer to the parent object.
The QModelIndex class is used to locate data in a data model.
int rowCount(const QModelIndex &) const
Returns the number of rows under the given parent.
QAbstractItemModel * model
QModelIndex index(int, int, const QModelIndex &) const
Returns the index of the item in the model specified by the given row, column and parent index...
int columnCount(const QModelIndex &) const
Returns the number of columns for the children of the given parent.
QModelIndex parent(const QModelIndex &) const
Returns the parent of the model item with the given index.