Browse Source

Fix strings not translated

Closes #9934.
adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
0ad831e48a
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 6
      src/gui/search/searchlistdelegate.cpp
  2. 2
      src/gui/search/searchlistdelegate.h

6
src/gui/search/searchlistdelegate.cpp

@ -37,10 +37,6 @@ @@ -37,10 +37,6 @@
#include "base/utils/misc.h"
#include "searchsortmodel.h"
namespace
{
const char i18nContext[] = "SearchListDelegate";
}
SearchListDelegate::SearchListDelegate(QObject *parent)
: QItemDelegate(parent)
@ -63,7 +59,7 @@ void SearchListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op @@ -63,7 +59,7 @@ void SearchListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op
case SearchSortModel::LEECHES:
opt.displayAlignment = Qt::AlignRight | Qt::AlignVCenter;
QItemDelegate::drawDisplay(painter, opt, option.rect
, (index.data().toLongLong() >= 0) ? index.data().toString() : QCoreApplication::translate(i18nContext, "Unknown"));
, (index.data().toLongLong() >= 0) ? index.data().toString() : tr("Unknown"));
break;
default:
QItemDelegate::paint(painter, option, index);

2
src/gui/search/searchlistdelegate.h

@ -33,6 +33,8 @@ @@ -33,6 +33,8 @@
class SearchListDelegate : public QItemDelegate
{
Q_OBJECT
public:
explicit SearchListDelegate(QObject *parent);

Loading…
Cancel
Save