diff --git a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp index 35662a3d923..4e627c3368e 100644 --- a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp +++ b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp @@ -32,16 +32,16 @@ #include #include -#include "projectexplorer/projectmanager.h" -#include "projectitem/qmlprojectitem.h" -#include "projectnode/qmlprojectnodes.h" +#include +#include +#include -#include "utils/algorithm.h" -#include "utils/filepath.h" -#include "utils/filesystemwatcher.h" -#include "utils/qtcassert.h" +#include +#include +#include +#include -#include "texteditor/textdocument.h" +#include #include @@ -242,7 +242,7 @@ void QmlBuildSystem::initMcuProjectItems() Utils::FilePath projectDir = projectFilePath().parentDir(); // traverse the project dir and find all other mcu projects (.qmlproject files) in the project tree // and add them to the m_mcuProjectItems vector - QDirIterator it(projectDir.toString(), QDir::Files, QDirIterator::Subdirectories); + QDirIterator it(projectDir.toFSPathString(), QDir::Files, QDirIterator::Subdirectories); while (it.hasNext()) { it.next(); if (it.fileInfo().suffix() == "qmlproject" && it.filePath() != projectFilePath().toString()) { diff --git a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.h b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.h index 998b5c8c937..d7e9c071245 100644 --- a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.h +++ b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.h @@ -6,13 +6,12 @@ #pragma once #include "../qmlprojectmanager_global.h" + #include -#include +#include #include "qmlprojectmanager/cmakegen/cmakegenerator.h" -#include "utils/filesystemwatcher.h" - namespace QmlProjectManager { class QmlProject; @@ -122,7 +121,7 @@ private: // this is the main project item QSharedPointer m_projectItem; // these are the mcu project items which can be found in the project tree - QVector> m_mcuProjectItems; + QList> m_mcuProjectItems; Utils::FileSystemWatcher m_mcuProjectFilesWatcher; bool m_blockFilesUpdate = false;