forked from qt-creator/qt-creator
TextEditor: Tr::tr
Change-Id: I28aa68e25c53c3a4d1c370074d7b3318944dc45a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include "cppchecktextmark.h"
|
||||
#include "cppchecktr.h"
|
||||
|
||||
#include <texteditor/texteditortr.h>
|
||||
|
||||
#include <utils/stringutils.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
@@ -64,7 +66,7 @@ CppcheckTextMark::CppcheckTextMark(const Diagnostic &diagnostic)
|
||||
// Copy to clipboard action
|
||||
QAction *action = new QAction;
|
||||
action->setIcon(QIcon::fromTheme("edit-copy", Icons::COPY.icon()));
|
||||
action->setToolTip(TextMark::tr("Copy to Clipboard"));
|
||||
action->setToolTip(TextEditor::Tr::tr("Copy to Clipboard"));
|
||||
QObject::connect(action, &QAction::triggered, [diagnostic]() {
|
||||
const QString text = QString("%1:%2: %3")
|
||||
.arg(diagnostic.fileName.toUserOutput())
|
||||
|
||||
Reference in New Issue
Block a user