diff options
author | hjk <[email protected]> | 2025-03-13 13:55:41 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2025-03-14 08:14:04 +0000 |
commit | 472660f8453c7e256180f636899e6871aaea4b48 (patch) | |
tree | bcf3d485317407c7ddc1ef398687a2eb856d6a0e /src/plugins/nim | |
parent | 347c7b643a4dc3d54b887416e84028638c538826 (diff) |
Utils: Convert FileSystemWatcher signals to FilePath
Task-number: QTCREATORBUG-26870
Change-Id: Ida2e2664a4944e139f1a667928978f521ff9cd1f
Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r-- | src/plugins/nim/project/nimbleproject.cpp | 8 | ||||
-rw-r--r-- | src/plugins/nim/project/nimproject.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/nim/project/nimbleproject.cpp b/src/plugins/nim/project/nimbleproject.cpp index 3407d4a15e9..840ce480fc1 100644 --- a/src/plugins/nim/project/nimbleproject.cpp +++ b/src/plugins/nim/project/nimbleproject.cpp @@ -115,8 +115,8 @@ NimbleBuildSystem::NimbleBuildSystem(BuildConfiguration *bc) { m_projectScanner.watchProjectFilePath(); - connect(&m_projectScanner, &NimProjectScanner::fileChanged, this, [this](const QString &path) { - if (path == projectFilePath().toUrlishString()) + connect(&m_projectScanner, &NimProjectScanner::fileChanged, this, [this](const FilePath &path) { + if (path == projectFilePath()) requestDelayedParse(); }); @@ -125,11 +125,11 @@ NimbleBuildSystem::NimbleBuildSystem(BuildConfiguration *bc) connect(&m_projectScanner, &NimProjectScanner::finished, this, &NimbleBuildSystem::updateProject); - connect(&m_projectScanner, &NimProjectScanner::directoryChanged, this, [this] (const QString &directory){ + connect(&m_projectScanner, &NimProjectScanner::directoryChanged, this, [this] (const FilePath &directory) { // Workaround for nimble creating temporary files in project root directory // when querying the list of tasks. // See https://github.com/nim-lang/nimble/issues/720 - if (FilePath::fromString(directory) != projectDirectory()) + if (directory != projectDirectory()) requestDelayedParse(); }); diff --git a/src/plugins/nim/project/nimproject.h b/src/plugins/nim/project/nimproject.h index 09b8e58611c..62b755662b8 100644 --- a/src/plugins/nim/project/nimproject.h +++ b/src/plugins/nim/project/nimproject.h @@ -47,8 +47,8 @@ public: signals: void finished(); void requestReparse(); - void directoryChanged(const QString &path); - void fileChanged(const QString &path); + void directoryChanged(const Utils::FilePath &path); + void fileChanged(const Utils::FilePath &path); private: void loadSettings(); |