KNewStuff
qtquick/commentsmodel.cpp
31 itemsModel->data(itemsModel->index(itemsModel->indexOfEntry(entry)), ItemsModel::CommentsModelRole).value<QObject *>()));
43 QModelIndex parentIndex = q->sourceModel()->index(q->sourceModel()->data(index, KNSCore::CommentsModel::ParentIndexRole).toInt(), 0);
105void KNewStuffQuick::CommentsModel::setIncludedComments(CommentsModel::IncludedComments includedComments)
114bool KNewStuffQuick::CommentsModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
Encapsulates a KNSCore::CommentsModel for use in Qt Quick.
Definition qtquick/commentsmodel.h:31
KNewStuffQuick::CommentsModel::IncludedComments includedComments
Which types of comments should be included @default AllComments.
Definition qtquick/commentsmodel.h:47
KNSCore::Entry entry
The index in the model of the entry to fetch comments for.
Definition qtquick/commentsmodel.h:41
IncludedComments
The options which can be set for which comments to include.
Definition qtquick/commentsmodel.h:53
void setIncludedComments(CommentsModel::IncludedComments includedComments)
Set which comments should be included.
Definition qtquick/commentsmodel.cpp:105
ItemsModel * itemsModel
The KNewStuffQuick::ItemsModel to interact with servers through.
Definition qtquick/commentsmodel.h:37
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
sourceModel
bool isValid() const const
Q_EMITQ_EMIT
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.