22 #ifndef KIDENTITYPROXYMODEL_H
23 #define KIDENTITYPROXYMODEL_H
25 #include <QtGui/QAbstractProxyModel>
29 class KIdentityProxyModelPrivate;
38 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
39 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const;
40 QModelIndex mapFromSource(
const QModelIndex& sourceIndex)
const;
41 QModelIndex mapToSource(
const QModelIndex& proxyIndex)
const;
42 QModelIndex parent(
const QModelIndex& child)
const;
43 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
44 bool dropMimeData(
const QMimeData* data, Qt::DropAction action,
int row,
int column,
const QModelIndex& parent);
46 QItemSelection mapSelectionFromSource(
const QItemSelection& selection)
const;
47 QItemSelection mapSelectionToSource(
const QItemSelection& selection)
const;
48 QModelIndexList match(
const QModelIndex& start,
int role,
const QVariant& value,
int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap))
const;
51 bool insertColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
52 bool insertRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
53 bool removeColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
54 bool removeRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
56 virtual bool canFetchMore(
const QModelIndex& parent)
const;
57 virtual void fetchMore(
const QModelIndex& parent);
59 virtual QMimeData* mimeData(
const QModelIndexList& indexes)
const;
60 virtual Qt::DropActions supportedDropActions()
const;
64 KIdentityProxyModelPrivate *
const d_ptr;
67 virtual void resetInternalData();
73 Q_PRIVATE_SLOT(d_func(),
void _k_sourceRowsAboutToBeInserted(QModelIndex,
int,
int))
74 Q_PRIVATE_SLOT(d_func(),
void _k_sourceRowsInserted(QModelIndex,
int,
int))
75 Q_PRIVATE_SLOT(d_func(),
void _k_sourceRowsAboutToBeRemoved(QModelIndex,
int,
int))
76 Q_PRIVATE_SLOT(d_func(),
void _k_sourceRowsRemoved(QModelIndex,
int,
int))
77 Q_PRIVATE_SLOT(d_func(),
void _k_sourceRowsAboutToBeMoved(QModelIndex,
int,
int,QModelIndex,
int))
78 Q_PRIVATE_SLOT(d_func(),
void _k_sourceRowsMoved(QModelIndex,
int,
int,QModelIndex,
int))
80 Q_PRIVATE_SLOT(d_func(),
void _k_sourceColumnsAboutToBeInserted(QModelIndex,
int,
int))
81 Q_PRIVATE_SLOT(d_func(),
void _k_sourceColumnsInserted(QModelIndex,
int,
int))
82 Q_PRIVATE_SLOT(d_func(),
void _k_sourceColumnsAboutToBeRemoved(QModelIndex,
int,
int))
83 Q_PRIVATE_SLOT(d_func(),
void _k_sourceColumnsRemoved(QModelIndex,
int,
int))
84 Q_PRIVATE_SLOT(d_func(),
void _k_sourceColumnsAboutToBeMoved(QModelIndex,
int,
int,QModelIndex,
int))
85 Q_PRIVATE_SLOT(d_func(),
void _k_sourceColumnsMoved(QModelIndex,
int,
int,QModelIndex,
int))
87 Q_PRIVATE_SLOT(d_func(),
void _k_sourceDataChanged(QModelIndex,QModelIndex))
88 Q_PRIVATE_SLOT(d_func(),
void _k_sourceHeaderDataChanged(Qt::Orientation orientation,
int first,
int last))
90 Q_PRIVATE_SLOT(d_func(),
void _k_sourceLayoutAboutToBeChanged())
91 Q_PRIVATE_SLOT(d_func(),
void _k_sourceLayoutChanged())
94 Q_PRIVATE_SLOT(d_func(),
void _k_sourceModelAboutToBeReset())
95 Q_PRIVATE_SLOT(d_func(),
void _k_sourceModelReset())
96 Q_PRIVATE_SLOT(d_func(),
void _k_sourceModelDestroyed())
99 #endif // KIDENTITYPROXYMODEL_H
The KIdentityProxyModel class proxies its source model unmodified.
KIdentityProxyModelPrivate *const d_ptr