blob: b63e62eef3d8cb4fd127428ffa938d453fb9db72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff --git a/src/plugins/python/pythonbuildsystem.cpp b/src/plugins/python/pythonbuildsystem.cpp
index 11e68498..84628dde 100644
--- a/src/plugins/python/pythonbuildsystem.cpp
+++ b/src/plugins/python/pythonbuildsystem.cpp
@@ -166,14 +166,14 @@ void PythonBuildSystem::triggerParsing()
const FilePath python = static_cast<PythonBuildConfiguration *>(buildConfiguration())->python();
const FilePath projectFile = projectFilePath();
- const QString displayName = projectFile.relativeNativePathFromDir(projectDirectory());
+ const QString displayName = projectFilePath().fileName();
newRoot->addNestedNode(
std::make_unique<PythonFileNode>(projectFile, displayName, FileType::Project));
bool hasQmlFiles = false;
for (const FileEntry &entry : std::as_const(m_files)) {
- const QString displayName = entry.filePath.relativeNativePathFromDir(projectDirectory());
+ const QString displayName = entry.filePath.fileName();
const FileType fileType = getFileType(entry.filePath);
hasQmlFiles |= fileType == FileType::QML;
|