diff options
Diffstat (limited to 'src/plugins/cppeditor/cppparsecontext.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppparsecontext.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/plugins/cppeditor/cppparsecontext.cpp b/src/plugins/cppeditor/cppparsecontext.cpp index bf24861a09..554c6ca839 100644 --- a/src/plugins/cppeditor/cppparsecontext.cpp +++ b/src/plugins/cppeditor/cppparsecontext.cpp @@ -3,6 +3,7 @@ #include "cppparsecontext.h" +#include "cppeditortr.h" #include "cppeditorwidget.h" #include <QAction> @@ -30,12 +31,12 @@ QString ParseContextModel::currentToolTip() const if (!index.isValid()) return QString(); - return tr("<p><b>Active Parse Context</b>:<br/>%1</p>" - "<p>Multiple parse contexts (set of defines, include paths, and so on) " - "are available for this file.</p>" - "<p>Choose a parse context to set it as the preferred one. " - "Clear the preference from the context menu.</p>") - .arg(data(index, Qt::ToolTipRole).toString()); + return Tr::tr("<p><b>Active Parse Context</b>:<br/>%1</p>" + "<p>Multiple parse contexts (set of defines, include paths, and so on) " + "are available for this file.</p>" + "<p>Choose a parse context to set it as the preferred one. " + "Clear the preference from the context menu.</p>") + .arg(data(index, Qt::ToolTipRole).toString()); } void ParseContextModel::setPreferred(int index) @@ -120,7 +121,7 @@ ParseContextWidget::ParseContextWidget(ParseContextModel &parseContextModel, QWi setSizePolicy(policy); // Set up context menu with a clear action setContextMenuPolicy(Qt::ActionsContextMenu); - m_clearPreferredAction = new QAction(tr("Clear Preferred Parse Context"), this); + m_clearPreferredAction = new QAction(Tr::tr("Clear Preferred Parse Context"), this); connect(m_clearPreferredAction, &QAction::triggered, this, [this] { m_parseContextModel.clearPreferred(); }); |