KDEUI
kidentityproxymodel.cpp
Go to the documentation of this file.
50 void _k_sourceRowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest);
51 void _k_sourceRowsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest);
57 void _k_sourceColumnsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest);
58 void _k_sourceColumnsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest);
65 // void _k_sourceChildrenLayoutsAboutToBeChanged(const QModelIndex &parent1, const QModelIndex &parent2);
131 KIdentityProxyModel::KIdentityProxyModel(KIdentityProxyModelPrivate* privateClass, QObject* parent)
181 bool KIdentityProxyModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent)
193 QVariant KIdentityProxyModel::headerData(int section, Qt::Orientation orientation, int role) const
250 QItemSelection KIdentityProxyModel::mapSelectionFromSource(const QItemSelection& selection) const
261 const QItemSelectionRange range(mapFromSource(it->topLeft()), mapFromSource(it->bottomRight()));
312 return SourceModelIndex(proxyIndex.row(), proxyIndex.column(), proxyIndex.internalPointer(), sourceModel());
318 QModelIndexList KIdentityProxyModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const
324 const QModelIndexList sourceList = sourceModel()->match(mapToSource(start), role, value, hits, flags);
521 void KIdentityProxyModelPrivate::_k_sourceColumnsAboutToBeInserted(const QModelIndex &parent, int start, int end)
528 void KIdentityProxyModelPrivate::_k_sourceColumnsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
533 q->beginMoveColumns(q->mapFromSource(sourceParent), sourceStart, sourceEnd, q->mapFromSource(destParent), dest);
536 void KIdentityProxyModelPrivate::_k_sourceColumnsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
543 void KIdentityProxyModelPrivate::_k_sourceColumnsInserted(const QModelIndex &parent, int start, int end)
553 void KIdentityProxyModelPrivate::_k_sourceColumnsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
566 void KIdentityProxyModelPrivate::_k_sourceColumnsRemoved(const QModelIndex &parent, int start, int end)
576 void KIdentityProxyModelPrivate::_k_sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
584 void KIdentityProxyModelPrivate::_k_sourceHeaderDataChanged(Qt::Orientation orientation, int first, int last)
602 if (!srcPersistentIndex.isValid()) // can happen with extra columns, e.g. KPIM::StatisticsProxyModel
629 #if 0 // this code was for the stuff that never went into Qt-4.8. We are keeping it for the Qt5 QIPM sourceLayoutChanged(QModelIndex) future code.
630 void KIdentityProxyModelPrivate::_k_sourceChildrenLayoutsAboutToBeChanged(const QModelIndex &parent1, const QModelIndex &parent2)
659 void KIdentityProxyModelPrivate::_k_sourceChildrenLayoutsChanged(const QModelIndex &parent1, const QModelIndex &parent2)
703 void KIdentityProxyModelPrivate::_k_sourceRowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
710 void KIdentityProxyModelPrivate::_k_sourceRowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
715 q->beginMoveRows(q->mapFromSource(sourceParent), sourceStart, sourceEnd, q->mapFromSource(destParent), dest);
718 void KIdentityProxyModelPrivate::_k_sourceRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
725 void KIdentityProxyModelPrivate::_k_sourceRowsInserted(const QModelIndex &parent, int start, int end)
735 void KIdentityProxyModelPrivate::_k_sourceRowsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
748 void KIdentityProxyModelPrivate::_k_sourceRowsRemoved(const QModelIndex &parent, int start, int end)
void columnsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn)
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: kidentityproxymodel.cpp:386
The KIdentityProxyModel class proxies its source model unmodified.
Definition: kidentityproxymodel.h:31
virtual int rowCount(const QModelIndex &parent) const =0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
bool insertColumns(int column, int count, const QModelIndex &parent=QModelIndex())
Definition: kidentityproxymodel.cpp:216
void layoutChanged()
virtual bool canFetchMore(const QModelIndex &parent) const
virtual void fetchMore(const QModelIndex &parent)
Definition: kidentityproxymodel.cpp:170
QItemSelection mapSelectionToSource(const QItemSelection &selection) const
Definition: kidentityproxymodel.cpp:271
virtual Qt::DropActions supportedDropActions() const
typedef MatchFlags
void columnsRemoved(const QModelIndex &parent, int start, int end)
void modelAboutToBeReset()
void modelReset()
virtual ~KIdentityProxyModel()
Definition: kidentityproxymodel.cpp:140
virtual bool insertRows(int row, int count, const QModelIndex &parent)
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
void columnsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn)
virtual QStringList mimeTypes() const
Definition: kidentityproxymodel.cpp:336
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual QStringList mimeTypes() const
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
Definition: kidentityproxymodel.cpp:238
void beginResetModel()
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, QFlags< Qt::MatchFlag > flags) const
void layoutAboutToBeChanged()
bool isValid() const
bool isValid() const
void rowsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
void append(const T &value)
void rowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kidentityproxymodel.cpp:203
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
bool removeColumns(int column, int count, const QModelIndex &parent=QModelIndex())
Definition: kidentityproxymodel.cpp:374
void setSourceModel(QAbstractItemModel *sourceModel)
Definition: kidentityproxymodel.cpp:409
QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Definition: kidentityproxymodel.cpp:307
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
Definition: kidentityproxymodel.cpp:344
int row() const
virtual bool removeColumns(int column, int count, const QModelIndex &parent)
virtual Qt::DropActions supportedDropActions() const
virtual void setSourceModel(QAbstractItemModel *sourceModel)
void * internalPointer() const
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
QModelIndex parent() const
void columnsInserted(const QModelIndex &parent, int start, int end)
void rowsRemoved(const QModelIndex &parent, int start, int end)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: kidentityproxymodel.cpp:193
QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const
Definition: kidentityproxymodel.cpp:318
KIdentityProxyModel(QObject *parent=0)
Definition: kidentityproxymodel.cpp:123
QModelIndex createIndex(int row, int column, void *ptr) const
virtual bool insertColumns(int column, int count, const QModelIndex &parent)
void columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
virtual bool removeRows(int row, int count, const QModelIndex &parent)
virtual QStringList mimeTypes() const
QAbstractItemModel * sourceModel() const
const QAbstractItemModel * model() const
virtual bool canFetchMore(const QModelIndex &parent) const
Definition: kidentityproxymodel.cpp:148
typedef DropActions
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: kidentityproxymodel.cpp:159
void headerDataChanged(Qt::Orientation orientation, int first, int last)
virtual int columnCount(const QModelIndex &parent) const =0
virtual Qt::DropActions supportedDropActions() const
Definition: kidentityproxymodel.cpp:513
int column() const
virtual void fetchMore(const QModelIndex &parent)
KIdentityProxyModelPrivate *const d_ptr
Definition: kidentityproxymodel.h:65
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
Definition: kidentityproxymodel.cpp:181
void rowsAboutToBeMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
const_iterator constEnd() const
const_iterator constBegin() const
void rowsInserted(const QModelIndex &parent, int start, int end)
void endResetModel()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QItemSelection mapSelectionFromSource(const QItemSelection &selection) const
Definition: kidentityproxymodel.cpp:250
QModelIndex parent() const
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: kidentityproxymodel.cpp:398
void destroyed(QObject *obj)
void columnsAboutToBeInserted(const QModelIndex &parent, int start, int end)
bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: kidentityproxymodel.cpp:227
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.