diff options
author | hjk <hjk@qt.io> | 2021-05-18 13:03:38 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-05-18 15:28:15 +0000 |
commit | c49a0af5046157039da2194723e0fc4dd48956f5 (patch) | |
tree | dcedc3d5bf14e173ee3da5e83c7ad3e84012fefd | |
parent | 124b7ad911109ebf9ba3001f0bdcb781b19be87b (diff) | |
download | qt-creator-c49a0af5046157039da2194723e0fc4dd48956f5.tar.gz |
Android: Use macro-expanded file paths in settings
Change-Id: I3db9fc6cc4e7da1c31579aff0e1e5b81a8f4ff94
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
-rw-r--r-- | src/plugins/android/androidsettingswidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/android/androidsettingswidget.cpp b/src/plugins/android/androidsettingswidget.cpp index 9b1848cba8..4e57b1868b 100644 --- a/src/plugins/android/androidsettingswidget.cpp +++ b/src/plugins/android/androidsettingswidget.cpp @@ -594,7 +594,7 @@ void AndroidSettingsWidget::validateOpenSsl() void AndroidSettingsWidget::onSdkPathChanged() { - auto sdkPath = FilePath::fromUserInput(m_ui.SDKLocationPathChooser->rawPath()); + const FilePath sdkPath = m_ui.SDKLocationPathChooser->filePath(); m_androidConfig.setSdkLocation(sdkPath); FilePath currentOpenSslPath = m_androidConfig.openSslLocation(); if (currentOpenSslPath.isEmpty() || !currentOpenSslPath.exists()) @@ -606,7 +606,7 @@ void AndroidSettingsWidget::onSdkPathChanged() void AndroidSettingsWidget::validateSdk() { - auto sdkPath = FilePath::fromUserInput(m_ui.SDKLocationPathChooser->rawPath()); + const FilePath sdkPath = m_ui.SDKLocationPathChooser->filePath(); m_androidConfig.setSdkLocation(sdkPath); m_androidSummary->setPointValid(SdkPathExistsRow, m_androidConfig.sdkLocation().exists()); @@ -865,12 +865,12 @@ void AndroidSettingsWidget::downloadSdk() } const QString message = tr("Download and install Android SDK Tools to: %1?") - .arg(QDir::toNativeSeparators(m_ui.SDKLocationPathChooser->rawPath())); + .arg(m_ui.SDKLocationPathChooser->filePath().toUserOutput()); auto userInput = QMessageBox::information(this, AndroidSdkDownloader::dialogTitle(), message, QMessageBox::Yes | QMessageBox::No); if (userInput == QMessageBox::Yes) { if (m_javaSummary->allRowsOk()) { - auto javaPath = FilePath::fromUserInput(m_ui.OpenJDKLocationPathChooser->rawPath()); + auto javaPath = m_ui.OpenJDKLocationPathChooser->filePath(); m_sdkDownloader.downloadAndExtractSdk(javaPath.toString(), m_ui.SDKLocationPathChooser->filePath().toString()); } |