From f680ed645f6307301587b82cd102babd73739da5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 06:28:40 -0400 Subject: [PATCH] CWorldInfoSidebar: Mark strings as translatable where applicable --- src/Editor/WorldEditor/CWorldInfoSidebar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Editor/WorldEditor/CWorldInfoSidebar.cpp b/src/Editor/WorldEditor/CWorldInfoSidebar.cpp index a40dc26d..e2e87a5b 100644 --- a/src/Editor/WorldEditor/CWorldInfoSidebar.cpp +++ b/src/Editor/WorldEditor/CWorldInfoSidebar.cpp @@ -50,13 +50,13 @@ CWorldInfoSidebar::~CWorldInfoSidebar() = default; // ************ SLOTS ************ void CWorldInfoSidebar::OnActiveProjectChanged(CGameProject *pProj) { - mpUI->ProjectInfoWidget->setHidden( pProj == nullptr ); + mpUI->ProjectInfoWidget->setHidden(pProj == nullptr); mpUI->WorldInfoWidget->setHidden(true); mpUI->AreaInfoWidget->setHidden(true); 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 // 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 { - 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!")); } } }