Help: Convert to Tr::tr

Change-Id: I3f9ca195488f7cc90e7f58eb15263dde1bc911c4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2022-07-11 13:30:24 +02:00
parent d262e665ca
commit e2d5936a76
36 changed files with 263 additions and 1723 deletions

View File

@@ -25,6 +25,8 @@
#include "openpageswidget.h"
#include "helptr.h"
#include <coreplugin/coreconstants.h>
#include <utils/stringutils.h>
@@ -85,8 +87,9 @@ void OpenPagesWidget::contextMenuRequested(QPoint pos)
index = index.sibling(index.row(), 0);
QMenu contextMenu;
const QString displayString = Utils::quoteAmpersands(index.data().toString());
QAction *closeEditor = contextMenu.addAction(tr("Close %1").arg(displayString));
QAction *closeOtherEditors = contextMenu.addAction(tr("Close All Except %1").arg(displayString));
QAction *closeEditor = contextMenu.addAction(Tr::tr("Close %1").arg(displayString));
QAction *closeOtherEditors = contextMenu.addAction(
Tr::tr("Close All Except %1").arg(displayString));
if (model()->rowCount() == 1) {
closeEditor->setEnabled(false);