From 041afedea3c51ea4581e6a7e7a7a4a1bafd67f77 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 06:15:37 -0400 Subject: [PATCH] CVirtualDirectoryModel: Mark strings as translatable where applicable --- src/Editor/ResourceBrowser/CVirtualDirectoryModel.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Editor/ResourceBrowser/CVirtualDirectoryModel.cpp b/src/Editor/ResourceBrowser/CVirtualDirectoryModel.cpp index ad452aa6..c75b6319 100644 --- a/src/Editor/ResourceBrowser/CVirtualDirectoryModel.cpp +++ b/src/Editor/ResourceBrowser/CVirtualDirectoryModel.cpp @@ -75,18 +75,20 @@ QVariant CVirtualDirectoryModel::data(const QModelIndex& rkIndex, int Role) cons if (Role == Qt::DisplayRole || Role == Qt::ToolTipRole) { if (!rkIndex.parent().isValid()) - return "Resources"; - + { + return tr("Resources"); + } else { CVirtualDirectory *pDir = IndexDirectory(rkIndex); - if (pDir) return TO_QSTRING(pDir->Name()); + if (pDir) + return TO_QSTRING(pDir->Name()); } } if (Role == Qt::DecorationRole) { - return QIcon(":/icons/Open_24px.svg"); + return QIcon(QStringLiteral(":/icons/Open_24px.svg")); } return QVariant::Invalid;