CWorldInfoSidebar: Mark strings as translatable where applicable

This commit is contained in:
Lioncash 2020-06-28 06:28:40 -04:00
parent 9b2bfd5bcd
commit f680ed645f
1 changed files with 4 additions and 4 deletions

View File

@ -50,13 +50,13 @@ CWorldInfoSidebar::~CWorldInfoSidebar() = default;
// ************ SLOTS ************ // ************ SLOTS ************
void CWorldInfoSidebar::OnActiveProjectChanged(CGameProject *pProj) void CWorldInfoSidebar::OnActiveProjectChanged(CGameProject *pProj)
{ {
mpUI->ProjectInfoWidget->setHidden( pProj == nullptr ); mpUI->ProjectInfoWidget->setHidden(pProj == nullptr);
mpUI->WorldInfoWidget->setHidden(true); mpUI->WorldInfoWidget->setHidden(true);
mpUI->AreaInfoWidget->setHidden(true); mpUI->AreaInfoWidget->setHidden(true);
mpUI->AreaSearchLineEdit->clear(); mpUI->AreaSearchLineEdit->clear();
mProxyModel.SetFilterString(""); mProxyModel.SetFilterString({});
mpUI->GameNameLabel->setText( pProj ? TO_QSTRING(pProj->Name()) : "" ); mpUI->GameNameLabel->setText(pProj ? TO_QSTRING(pProj->Name()) : QString{});
// Add/remove widgets from the form layout based on the game. This is needed because // Add/remove widgets from the form layout based on the game. This is needed because
// simply hiding the widgets causes a minor spacing issue. The only fix seems to be // simply hiding the widgets causes a minor spacing issue. The only fix seems to be
@ -152,7 +152,7 @@ void CWorldInfoSidebar::OnWorldTreeDoubleClicked(QModelIndex Index)
} }
else else
{ {
UICommon::ErrorMsg(Editor(), "The MREA asset associated with this area doesn't exist!"); UICommon::ErrorMsg(Editor(), tr("The MREA asset associated with this area doesn't exist!"));
} }
} }
} }