diff options
author | hjk <hjk@qt.io> | 2022-11-24 15:21:15 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-12-14 09:14:12 +0000 |
commit | 4159c4b5d55c65d0759925e0dc8c63c60653b367 (patch) | |
tree | fbd8154d8317b25bcbb55bc715e2033cc412d30f /src/plugins/cppeditor/cppcodemodelinspectordialog.cpp | |
parent | 9bac0d7f4c574a88455771b88f078c0c10dd9b32 (diff) | |
download | qt-creator-4159c4b5d55c65d0759925e0dc8c63c60653b367.tar.gz |
CppEditor: More migration to FilePath
Change-Id: I261b713671e00bb567f61b4ee5ecf6fa83473bff
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppcodemodelinspectordialog.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppcodemodelinspectordialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp index b8af9a2b1b..ff24d57ed5 100644 --- a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp +++ b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp @@ -1436,7 +1436,7 @@ void CppCodeModelInspectorDialog::onDocumentSelected(const QModelIndex ¤t, if (current.isValid()) { const QModelIndex index = m_proxySnapshotModel->index(current.row(), SnapshotModel::FilePathColumn); - const QString filePath = QDir::fromNativeSeparators( + const FilePath filePath = FilePath::fromUserInput( m_proxySnapshotModel->data(index, Qt::DisplayRole).toString()); const SnapshotInfo info = m_snapshotInfos->at(m_ui->snapshotSelector->currentIndex()); updateDocumentData(info.snapshot.document(filePath)); |