fix #1183
This commit is contained in:
parent
0b8a2997fe
commit
f679b9cb67
@ -68,3 +68,9 @@ bool Category::markAsReadUnread(RootItem::ReadStatus status) {
|
|||||||
|
|
||||||
return service->markFeedsReadUnread(getSubTreeFeeds(), status);
|
return service->markFeedsReadUnread(getSubTreeFeeds(), status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Category::additionalTooltip() const {
|
||||||
|
return tr("Number of feeds: %1\n"
|
||||||
|
"Number of categories: %2")
|
||||||
|
.arg(QString::number(getSubTreeFeeds().size()), QString::number(getSubTreeCategories().size() - 1));
|
||||||
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
class Category : public RootItem {
|
class Category : public RootItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Category(RootItem* parent = nullptr);
|
explicit Category(RootItem* parent = nullptr);
|
||||||
@ -15,6 +15,7 @@ class Category : public RootItem {
|
|||||||
virtual void updateCounts(bool including_total_count);
|
virtual void updateCounts(bool including_total_count);
|
||||||
virtual bool cleanMessages(bool clean_read_only);
|
virtual bool cleanMessages(bool clean_read_only);
|
||||||
virtual bool markAsReadUnread(ReadStatus status);
|
virtual bool markAsReadUnread(ReadStatus status);
|
||||||
|
virtual QString additionalTooltip() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CATEGORY_H
|
#endif // CATEGORY_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user