aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/buildaspects.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-06-29 17:18:26 +0200
committerhjk <hjk@qt.io>2023-07-04 11:41:31 +0000
commit8e257dca2c3e5359c1583b3d31a27397299c31dd (patch)
tree1cc77177bda8460f343a100496aab0e6f3aba8a3 /src/plugins/projectexplorer/buildaspects.cpp
parent13ccc24a353262dd8bd9838cb70773af65d3d7b9 (diff)
Utils: Replace StringAspect::setFilePath()
... by FilePathAspect::setValue(). Closer to the intented uniform API. Task-number: QTCREATORBUG-29167 Change-Id: Ife26046eaeef2e49108e42a31a2d32e453883e3c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/projectexplorer/buildaspects.cpp')
-rw-r--r--src/plugins/projectexplorer/buildaspects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/buildaspects.cpp b/src/plugins/projectexplorer/buildaspects.cpp
index 3f161867ef..2ffcbc7ac8 100644
--- a/src/plugins/projectexplorer/buildaspects.cpp
+++ b/src/plugins/projectexplorer/buildaspects.cpp
@@ -102,7 +102,7 @@ void BuildDirectoryAspect::fromMap(const QVariantMap &map)
if (!d->sourceDir.isEmpty()) {
d->savedShadowBuildDir = FilePath::fromSettings(map.value(settingsKey() + ".shadowDir"));
if (d->savedShadowBuildDir.isEmpty())
- setFilePath(d->sourceDir);
+ setValue(d->sourceDir);
setChecked(d->sourceDir != filePath());
}
}
@@ -117,11 +117,11 @@ void BuildDirectoryAspect::addToLayout(Layouting::LayoutItem &parent)
if (!d->sourceDir.isEmpty()) {
connect(this, &StringAspect::checkedChanged, this, [this] {
if (isChecked()) {
- setFilePath(d->savedShadowBuildDir.isEmpty()
+ setValue(d->savedShadowBuildDir.isEmpty()
? d->sourceDir : d->savedShadowBuildDir);
} else {
d->savedShadowBuildDir = filePath();
- setFilePath(d->sourceDir);
+ setValue(d->sourceDir);
}
});
}