KNewStuff
qtquick/commentsmodel.cpp
33 q->setSourceModel(qobject_cast<QAbstractListModel*>(itemsModel->data(itemsModel->index(entryIndex), ItemsModel::CommentsModelRole).value<QObject*>()));
44 QModelIndex parentIndex = q->sourceModel()->index(q->sourceModel()->data(index, KNSCore::CommentsModel::ParentIndexRole).toInt(), 0);
110 void KNewStuffQuick::CommentsModel::setIncludedComments(CommentsModel::IncludedComments includedComments)
119 bool KNewStuffQuick::CommentsModel::filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
Encapsulates a KNSCore::CommentsModel for use in Qt Quick.
Definition: qtquick/commentsmodel.h:24
IncludedComments
The options which can be set for which comments to include.
Definition: qtquick/commentsmodel.h:47
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
CommentsModel::IncludedComments includedComments() const
Which comments should be included.
bool isValid() const const
Definition: qtquick/author.cpp:19
sourceModel
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void setIncludedComments(CommentsModel::IncludedComments includedComments)
Set which comments should be included.
Definition: qtquick/commentsmodel.cpp:110
T qobject_cast(QObject *object)
QObject * parent() const const
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.