From 0a0dd9ea31d03fcc57f51de724c32e8ca3fe3d3f Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 9 Jan 2023 18:08:30 +0100 Subject: CppCheck: Tr::tr and code cosmetics Change-Id: I5e6583984f7dc94e998df3c20840f2ba2e801ab8 Reviewed-by: Alessandro Portale --- src/plugins/cppcheck/cppcheckdiagnosticview.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/plugins/cppcheck/cppcheckdiagnosticview.cpp') diff --git a/src/plugins/cppcheck/cppcheckdiagnosticview.cpp b/src/plugins/cppcheck/cppcheckdiagnosticview.cpp index f20332e79d..2976fffbb1 100644 --- a/src/plugins/cppcheck/cppcheckdiagnosticview.cpp +++ b/src/plugins/cppcheck/cppcheckdiagnosticview.cpp @@ -3,15 +3,16 @@ #include "cppcheckdiagnosticview.h" +#include "cppchecktr.h" + #include #include -namespace Cppcheck { -namespace Internal { - using namespace Debugger; +namespace Cppcheck::Internal { + DiagnosticView::DiagnosticView(QWidget *parent) : DetailedErrorView(parent) { @@ -21,7 +22,7 @@ DiagnosticView::DiagnosticView(QWidget *parent) setAutoScroll(false); sortByColumn(DiagnosticColumn, Qt::AscendingOrder); setObjectName("CppcheckIssuesView"); - setWindowTitle(tr("Cppcheck Diagnostics")); + setWindowTitle(Tr::tr("Cppcheck Diagnostics")); setHeaderHidden(true); } @@ -90,7 +91,4 @@ void DiagnosticView::mouseDoubleClickEvent(QMouseEvent *event) DetailedErrorView::mouseDoubleClickEvent(event); } -} // namespace Internal -} // namespace Cppcheck - -//#include "clangtoolsdiagnosticview.moc" +} // Cppcheck::Internal -- cgit v1.2.1