diff options
author | hjk <hjk@qt.io> | 2022-11-24 19:16:47 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-01-11 09:54:25 +0000 |
commit | b87f0519e300c86ded0e4fd52379b0df0d996402 (patch) | |
tree | d261fc54e07a99454bd30b90c815451638b549d8 /src/plugins/cppeditor/cppcodemodelinspectordialog.cpp | |
parent | 887db6b419b443bfd7f1fd7d95632d6ad18c603c (diff) | |
download | qt-creator-b87f0519e300c86ded0e4fd52379b0df0d996402.tar.gz |
CppEditor: Use FilePath for ProjectPath::m_sourceFiles
... and update using code.
Change-Id: I682727a4b2982dba388e7cc7b9488225748d591f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppcodemodelinspectordialog.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppcodemodelinspectordialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp index b5808a60c5..fb06a8ba60 100644 --- a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp +++ b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp @@ -240,11 +240,10 @@ QVariant ProjectFilesModel::data(const QModelIndex &index, int role) const if (role == Qt::DisplayRole) { const int row = index.row(); const int column = index.column(); - if (column == FileKindColumn) { + if (column == FileKindColumn) return CMI::Utils::toString(m_files.at(row).kind); - } else if (column == FilePathColumn) { - return m_files.at(row).path; - } + if (column == FilePathColumn) + return m_files.at(row).path.toVariant(); } else if (role == Qt::ForegroundRole) { if (!m_files.at(index.row()).active) { return QApplication::palette().color(QPalette::ColorGroup::Disabled, |