CWorldTreeModel: Mark strings as translatable where applicable

This commit is contained in:
Lioncash 2020-06-28 06:31:11 -04:00
parent 9158fbc22b
commit 33840696c2
1 changed files with 4 additions and 4 deletions

View File

@ -95,8 +95,8 @@ QVariant CWorldTreeModel::data(const QModelIndex& rkIndex, int Role) const
else if (Role == Qt::DecorationRole)
{
static QIcon sWorldIcon = QIcon(":/icons/World_16px.svg");
static QIcon sAreaIcon = QIcon(":/icons/New_16px.svg");
static QIcon sWorldIcon = QIcon(QStringLiteral(":/icons/World_16px.svg"));
static QIcon sAreaIcon = QIcon(QStringLiteral(":/icons/New_16px.svg"));
if (rkIndex.column() == 1)
return QVariant::Invalid;
@ -154,9 +154,9 @@ QVariant CWorldTreeModel::headerData(int Section, Qt::Orientation Orientation, i
if (Orientation == Qt::Horizontal && Role == Qt::DisplayRole)
{
if (Section == 0)
return "In-Game Name";
return tr("In-Game Name");
else
return "Internal Name";
return tr("Internal Name");
}
return QVariant::Invalid;
}