diff options
author | hjk <[email protected]> | 2025-01-09 11:58:40 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2025-01-10 13:05:29 +0000 |
commit | 2d9d6aa315976dc8937381e453f57263950d8841 (patch) | |
tree | 7ccb860763e95ad24272b158ead690afb79e9c3b /src/plugins/qnx/qnxsettingspage.cpp | |
parent | 0986822d44c80ee1fc8fef0289a05ccc2d4d3668 (diff) |
Utils: Rename FilePath::toString() into toUrlishString()
toString() is almost always the wrong conversion, but unfortunately
too easy to find and often even working at least for local setup.
This here raises the bar as the non-availability of the "obvious"
toString() hopefully helps people to think about the semantics of
the needed conversion and choose the right toXXX() function.
The chosen new name is intentional ugly to reduce the likelihood
that this (still almost always wrong) function is used out of
convenience.
Change-Id: I57f1618dd95ef2629d7d978688d130275e096c0f
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/qnx/qnxsettingspage.cpp')
-rw-r--r-- | src/plugins/qnx/qnxsettingspage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qnx/qnxsettingspage.cpp b/src/plugins/qnx/qnxsettingspage.cpp index 3d228c0d2bb..c81a14844e3 100644 --- a/src/plugins/qnx/qnxsettingspage.cpp +++ b/src/plugins/qnx/qnxsettingspage.cpp @@ -93,7 +93,7 @@ public: Store toMap() const { Store data; - data.insert(QNXEnvFileKey, m_envFile.toString()); + data.insert(QNXEnvFileKey, m_envFile.toUrlishString()); data.insert(QNXVersionKey, m_version.toString()); return data; } @@ -276,7 +276,7 @@ void QnxConfiguration::createKit(const QnxTarget &target) .arg(target.shortDescription())); k->setAutoDetected(false); - k->setAutoDetectionSource(m_envFile.toString()); + k->setAutoDetectionSource(m_envFile.toUrlishString()); k->setSticky(ToolchainKitAspect::id(), true); k->setSticky(RunDeviceTypeKitAspect::id(), true); @@ -655,8 +655,8 @@ void QnxSettingsWidget::updateInformation() config->ensureContents(); m_configName->setText(config->m_configName); m_configVersion->setText(config->m_version.toString()); - m_configHost->setText(config->m_qnxHost.toString()); - m_configTarget->setText(config->m_qnxTarget.toString()); + m_configHost->setText(config->m_qnxHost.toUrlishString()); + m_configTarget->setText(config->m_qnxTarget.toUrlishString()); m_compiler->setText(config->m_qccCompiler.toUserOutput()); m_architectures->setText(config->architectureNames()); m_kitCreation->setConfiguration(envFile); |