Move some FileSystemWatcher usages to FilePath

Change-Id: I72d24ae3f819e429009b0d7e42b21957f07cb00a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
hjk
2023-01-23 13:54:54 +01:00
parent 471e67d1a6
commit 3ff5661327
8 changed files with 21 additions and 29 deletions

View File

@@ -158,7 +158,7 @@ private:
CppEditor::CppProjectUpdaterInterface *m_cppCodeModelUpdater = nullptr;
Utils::FileSystemWatcher m_deployFileWatcher;
FileSystemWatcher m_deployFileWatcher;
};
////////////////////////////////////////////////////////////////////////////////////
@@ -602,9 +602,9 @@ void GenericBuildSystem::updateDeploymentData()
deploymentData.addFilesFromDeploymentFile(deploymentFilePath.toString(),
projectDirectory().toString());
setDeploymentData(deploymentData);
if (m_deployFileWatcher.files() != QStringList(deploymentFilePath.toString())) {
if (m_deployFileWatcher.filePaths() != FilePaths{deploymentFilePath}) {
m_deployFileWatcher.clear();
m_deployFileWatcher.addFile(deploymentFilePath.toString(),
m_deployFileWatcher.addFile(deploymentFilePath,
FileSystemWatcher::WatchModifiedDate);
}
}