KDEUI
kdescendantsproxymodel.h
Go to the documentation of this file.
181 int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const;
193 Q_PRIVATE_SLOT(d_func(), void sourceRowsAboutToBeMoved(const QModelIndex &, int, int, const QModelIndex &, int))
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
Definition kdescendantsproxymodel.cpp:419
QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Definition kdescendantsproxymodel.cpp:358
virtual QModelIndex index(int, int, const QModelIndex &parent=QModelIndex()) const
Definition kdescendantsproxymodel.cpp:347
virtual void setSourceModel(QAbstractItemModel *model)
Sets the source model of the proxy.
Definition kdescendantsproxymodel.cpp:258
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition kdescendantsproxymodel.cpp:521
void setAncestorSeparator(const QString &separator)
Sets the ancestor separator used between data of ancestors.
Definition kdescendantsproxymodel.cpp:245
void setRootIndex(const QModelIndex &index)
Definition kdescendantsproxymodel.cpp:223
virtual bool hasChildren(const QModelIndex &parent=QModelIndex()) const
Definition kdescendantsproxymodel.cpp:327
void setDisplayAncestorData(bool display)
Set whether to show ancestor data in the model.
Definition kdescendantsproxymodel.cpp:233
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const
Reimplemented to match all descendants.
Definition kdescendantsproxymodel.cpp:228
virtual int columnCount(const QModelIndex &index=QModelIndex()) const
Definition kdescendantsproxymodel.cpp:481
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition kdescendantsproxymodel.cpp:529
virtual QStringList mimeTypes() const
Definition kdescendantsproxymodel.cpp:992
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
Definition kdescendantsproxymodel.cpp:981
virtual Qt::DropActions supportedDropActions() const
Definition kdescendantsproxymodel.cpp:1000
int descendantCount(const QModelIndex &index) const
Returns the number of descendant entries for the given model index.
virtual QModelIndex parent(const QModelIndex &) const
Definition kdescendantsproxymodel.cpp:321
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition kdescendantsproxymodel.cpp:489
KDescendantsProxyModel(QObject *parent=0)
Creates a new descendant entities proxy model.
Definition kdescendantsproxymodel.cpp:213
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition kdescendantsproxymodel.cpp:333
bool displayAncestorData() const
Whether ancestor data will be displayed.
Definition kdescendantsproxymodel.cpp:239
QString ancestorSeparator() const
Separator used between data of ancestors.
Definition kdescendantsproxymodel.cpp:251
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.