Prefix Tr::tr contexts with ::

To make outliers better visible in Linguist

Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-01-13 11:03:09 +01:00
parent eab76c5007
commit e7c536011f
148 changed files with 3625 additions and 3617 deletions

View File

@@ -619,9 +619,10 @@ public:
m_toggleRightSidebarAction.setCheckable(true);
m_toggleRightSidebarAction.setChecked(true);
const auto toolTipText = [](bool checked) {
return checked
? QCoreApplication::translate("Core", Core::Constants::TR_HIDE_RIGHT_SIDEBAR)
: QCoreApplication::translate("Core", Core::Constants::TR_SHOW_RIGHT_SIDEBAR);
return checked ? QCoreApplication::translate("::Core",
Core::Constants::TR_HIDE_RIGHT_SIDEBAR)
: QCoreApplication::translate("::Core",
Core::Constants::TR_SHOW_RIGHT_SIDEBAR);
};
m_toggleRightSidebarAction.setText(toolTipText(false)); // always "Show Right Sidebar"
m_toggleRightSidebarAction.setToolTip(toolTipText(m_toggleRightSidebarAction.isChecked()));