Fix Linux comp.
This commit is contained in:
parent
e3d6d8e494
commit
bbbfe23a05
|
@ -148,8 +148,8 @@ QVariant RootItem::data(int column, int role) const {
|
||||||
int count_unread = countOfUnreadMessages();
|
int count_unread = countOfUnreadMessages();
|
||||||
|
|
||||||
return qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::CountFormat)).toString()
|
return qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::CountFormat)).toString()
|
||||||
.replace(PLACEHOLDER_UNREAD_COUNTS, count_unread < 0 ? QSL('-') : QString::number(count_unread))
|
.replace(PLACEHOLDER_UNREAD_COUNTS, count_unread < 0 ? QSL("-") : QString::number(count_unread))
|
||||||
.replace(PLACEHOLDER_ALL_COUNTS, count_all < 0 ? QSL('-') : QString::number(count_all));
|
.replace(PLACEHOLDER_ALL_COUNTS, count_all < 0 ? QSL("-") : QString::number(count_all));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
|
@ -72,7 +72,7 @@ QVariant StandardCategory::data(int column, int role) const {
|
||||||
//: Tooltip for standard feed.
|
//: Tooltip for standard feed.
|
||||||
return tr("%1 (category)"
|
return tr("%1 (category)"
|
||||||
"%2%3").arg(title(),
|
"%2%3").arg(title(),
|
||||||
description().isEmpty() ? QString() : QSL('\n') + description(),
|
description().isEmpty() ? QString() : QSL("\n") + description(),
|
||||||
childCount() == 0 ?
|
childCount() == 0 ?
|
||||||
tr("\nThis category does not contain any nested items.") :
|
tr("\nThis category does not contain any nested items.") :
|
||||||
QString());
|
QString());
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include "services/abstract/serviceroot.h"
|
#include "services/abstract/serviceroot.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
#include <QPair>
|
||||||
|
|
||||||
|
|
||||||
class StandardRecycleBin;
|
class StandardRecycleBin;
|
||||||
|
|
Loading…
Reference in New Issue