29 namespace KNewStuffQuick
56 Q_PROPERTY(KNewStuffQuick::CommentsModel::IncludedComments includedComments READ includedComments WRITE setIncludedComments NOTIFY includedCommentsChanged)
64 IncludeOnlyReviews = 1, //< Only comments which have a rating (and thus is considered a review) should be included
65 IncludeReviewsAndReplies = 2 //< Reviews (as OnlyReviews), except child comments are also included
70 ~CommentsModel() override;
75 void setItemsModel(QObject *newItemsModel);
76 Q_SIGNAL void itemsModelChanged();
78 int entryIndex() const;
80 Q_SIGNAL void entryIndexChanged();
98 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