mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-02 03:13:38 +00:00
CResourceSelector: Mark strings as translatable where applicable
This commit is contained in:
parent
61ed4163fb
commit
57072ffeb4
@ -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()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user