CScanEditor: Make window title translatable

This commit is contained in:
Lioncash 2020-07-03 08:48:48 -04:00
parent 53ab3f4862
commit 85556b28e2

View File

@ -11,8 +11,8 @@ CScanEditor::CScanEditor(CScan* pScan, QWidget* pParent)
mpUI->ToolBar->addSeparator();
AddUndoActions(mpUI->ToolBar);
QString WindowTitle = "%APP_FULL_NAME% - Scan Editor - %1[*]";
WindowTitle = WindowTitle.arg(TO_QSTRING(mpScan->Entry()->CookedAssetPath(true).GetFileName()));
const QString WindowTitle = tr("%APP_FULL_NAME% - Scan Editor - %1[*]")
.arg(TO_QSTRING(mpScan->Entry()->CookedAssetPath(true).GetFileName()));
SET_WINDOWTITLE_APPVARS(WindowTitle);
connect(mpUI->ActionSave, &QAction::toggled, this, &CScanEditor::Save);