Marble
kdescendantsproxymodel.h
36KDescendantEntitiesProxyModel can also display the ancestors of the index in the source model as part of its display.
164 Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith | Qt::MatchWrap)) const Q_DECL_OVERRIDE;
175 Q_PRIVATE_SLOT(d_func(), void sourceRowsAboutToBeMoved(const QModelIndex &, int, int, const QModelIndex &, int))
176 Q_PRIVATE_SLOT(d_func(), void sourceRowsMoved(const QModelIndex &, int, int, const QModelIndex &, int))
KDescendantsProxyModel(QObject *parent=nullptr)
Creates a new descendant entities proxy model.
Definition kdescendantsproxymodel.cpp:190
void setAncestorSeparator(const QString &separator)
Sets the ancestor separator used between data of ancestors.
Definition kdescendantsproxymodel.cpp:225
QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const override
Reimplemented to match all descendants.
Definition kdescendantsproxymodel.cpp:208
void setDisplayAncestorData(bool display)
Set whether to show ancestor data in the model.
Definition kdescendantsproxymodel.cpp:213
void setSourceModel(QAbstractItemModel *model) override
Sets the source model of the proxy.
Definition kdescendantsproxymodel.cpp:237
bool displayAncestorData() const
Whether ancestor data will be displayed.
Definition kdescendantsproxymodel.cpp:219
QString ancestorSeparator() const
Separator used between data of ancestors.
Definition kdescendantsproxymodel.cpp:231
Q_SCRIPTABLE QString start(QString train="")
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
QAbstractItemModel(QObject *parent)
QAbstractProxyModel(QObject *parent)
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
typedef DropActions
DisplayRole
typedef ItemFlags
typedef MatchFlags
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.