diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-11-20 16:08:08 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-11-20 15:43:25 +0000 |
commit | f534624fce9a5f1f3d1573c6800cbec5dec8edbf (patch) | |
tree | 8c80de8bc11fdbab6fd4986a9e966eb23839184a /src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp | |
parent | 01331893adf91a3bb96152b65dc113fd57cb8ed2 (diff) | |
download | qt-creator-f534624fce9a5f1f3d1573c6800cbec5dec8edbf.tar.gz |
Fix build with newest Qt 6
No implicit casts from QString to QFileInfo anymore, and a few more
QChar(int) fixes.
Task-number: QTCREATORBUG-24098
Change-Id: I3326fc0701a9259c7bdd2d8c3025de0a4774f8aa
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp')
-rw-r--r-- | src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp b/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp index e9121793e3..a4c4000cb7 100644 --- a/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp +++ b/src/plugins/cppcheck/cppcheckdiagnosticsmodel.cpp @@ -47,7 +47,7 @@ QVariant FilePathItem::data(int column, int role) const case Qt::DisplayRole: return m_filePath; case Qt::DecorationRole: - return Core::FileIconProvider::icon(m_filePath); + return Core::FileIconProvider::icon(QFileInfo(m_filePath)); case Debugger::DetailedErrorView::FullTextRole: return m_filePath; default: |