CResourceSelector: Mark strings as translatable where applicable

This commit is contained in:
Lioncash 2020-06-28 05:18:54 -04:00
parent 61ed4163fb
commit 57072ffeb4

View File

@ -25,17 +25,17 @@ CResourceSelector::CResourceSelector(QWidget *pParent)
// Set up UI // Set up UI
mpResNameButton = new QPushButton(this); mpResNameButton = new QPushButton(this);
mpResNameButton->setFlat(true); mpResNameButton->setFlat(true);
mpResNameButton->setStyleSheet("text-align:left; font-size:10pt; margin:0px; padding-left:2px"); mpResNameButton->setStyleSheet(QStringLiteral("text-align:left; font-size:10pt; margin:0px; padding-left:2px"));
mpSelectButton = new QPushButton(this); mpSelectButton = new QPushButton(this);
mpSelectButton->setToolTip("Select Resource"); mpSelectButton->setToolTip(tr("Select Resource"));
mpSelectButton->setIcon(QIcon(":/icons/ArrowD_16px.svg")); mpSelectButton->setIcon(QIcon(QStringLiteral(":/icons/ArrowD_16px.svg")));
mpSelectButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); mpSelectButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
mpSelectButton->setFixedSize(16, 16); mpSelectButton->setFixedSize(16, 16);
mpClearButton = new QPushButton(this); mpClearButton = new QPushButton(this);
mpClearButton->setToolTip("Clear"); mpClearButton->setToolTip(tr("Clear"));
mpClearButton->setIcon(QIcon(":/icons/X_16px.svg")); mpClearButton->setIcon(QIcon(QStringLiteral(":/icons/X_16px.svg")));
mpClearButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); mpClearButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
mpClearButton->setFixedSize(16, 16); mpClearButton->setFixedSize(16, 16);
@ -66,9 +66,9 @@ CResourceSelector::CResourceSelector(QWidget *pParent)
connect(gpEdApp->ResourceBrowser(), SIGNAL(ResourceMoved(CResourceEntry*,CVirtualDirectory*,TString)), this, SLOT(OnResourceMoved(CResourceEntry*))); connect(gpEdApp->ResourceBrowser(), SIGNAL(ResourceMoved(CResourceEntry*,CVirtualDirectory*,TString)), this, SLOT(OnResourceMoved(CResourceEntry*)));
// Set up context menu // Set up context menu
mpEditAssetAction = new QAction("Edit", this); mpEditAssetAction = new QAction(tr("Edit"), this);
mpCopyNameAction = new QAction("Copy name", this); mpCopyNameAction = new QAction(tr("Copy name"), this);
mpCopyPathAction = new QAction("Copy path", this); mpCopyPathAction = new QAction(tr("Copy path"), this);
// Context menu connections // Context menu connections
connect(mpEditAssetAction, SIGNAL(triggered()), this, SLOT(EditAsset())); connect(mpEditAssetAction, SIGNAL(triggered()), this, SLOT(EditAsset()));