CppCheck: Tr::tr and code cosmetics

Change-Id: I5e6583984f7dc94e998df3c20840f2ba2e801ab8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-09 18:08:30 +01:00
parent 677fd6ba9a
commit 0a0dd9ea31
29 changed files with 163 additions and 286 deletions

View File

@@ -3,16 +3,17 @@
#include "cppcheckdiagnosticsmodel.h"
#include "cppchecktr.h"
#include <debugger/analyzer/diagnosticlocation.h>
#include <utils/fsengine/fileiconprovider.h>
#include <utils/utilsicons.h>
namespace Cppcheck {
namespace Internal {
using namespace Debugger;
namespace Cppcheck::Internal {
FilePathItem::FilePathItem(const QString &filePath)
: m_filePath(filePath)
{}
@@ -83,7 +84,7 @@ QVariant DiagnosticItem::data(int column, int role) const
DiagnosticsModel::DiagnosticsModel(QObject *parent)
: BaseModel(parent)
{
setHeader({tr("Diagnostic")});
setHeader({Tr::tr("Diagnostic")});
}
void DiagnosticsModel::clear()
@@ -116,5 +117,4 @@ void DiagnosticsModel::add(const Diagnostic &diagnostic)
filePathItem->appendChild(new DiagnosticItem(diagnostic));
}
} // namespace Internal
} // namespace Cppcheck
} // Cppcheck::Internal