14 namespace KNewStuffQuick
41 Q_PROPERTY(KNewStuffQuick::CommentsModel::IncludedComments includedComments READ includedComments WRITE setIncludedComments NOTIFY includedCommentsChanged)
49 IncludeOnlyReviews = 1, //< Only comments which have a rating (and thus is considered a review) should be included
50 IncludeReviewsAndReplies = 2, //< Reviews (as OnlyReviews), except child comments are also included
55 ~CommentsModel() override;
60 void setItemsModel(QObject *newItemsModel);
61 Q_SIGNAL void itemsModelChanged();
63 int entryIndex() const;
65 Q_SIGNAL void entryIndexChanged();
83 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
Encapsulates a KNSCore::CommentsModel for use in Qt Quick.
The options which can be set for which comments to include.
CommentsModel::IncludedComments includedComments() const
Which comments should be included.
The index in the model of the entry to fetch comments for.
Q_SIGNAL void includedCommentsChanged()
Fired when the value of includedComments changes.
The KNewStufQuick::ItemsModel to interact with servers through.
void setIncludedComments(CommentsModel::IncludedComments includedComments)
Set which comments should be included.
QObject * parent() const const