aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-04-09 11:05:50 +0200
committerhjk <hjk@qt.io>2020-04-09 17:30:23 +0000
commit79b680e7f0b0ff5ecca9b17fabb11fd03947ec8f (patch)
treeec8f594ed02b1a55869ade473130efb806b20ca1 /src/plugins
parent45ba9fcd535e4cfd5f057149b1ca4bb4dfed5bdb (diff)
Utils: Rename PathChooser::{f,setF}ileName() to {f,setF}ilePath()
It's returning a FilePath, so it's a better fit. Keep the old versions as inline function now to ease downstream migration. Change-Id: I535887928018f42b92895c8b0c82527f0d55e5ca Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/android/androidsettingswidget.cpp8
-rw-r--r--src/plugins/baremetal/debugservers/gdb/eblinkgdbserverprovider.cpp8
-rw-r--r--src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp4
-rw-r--r--src/plugins/baremetal/debugservers/gdb/jlinkgdbserverprovider.cpp4
-rw-r--r--src/plugins/baremetal/debugservers/gdb/openocdgdbserverprovider.cpp12
-rw-r--r--src/plugins/baremetal/debugservers/gdb/stlinkutilgdbserverprovider.cpp4
-rw-r--r--src/plugins/baremetal/debugservers/uvsc/uvscserverprovider.cpp8
-rw-r--r--src/plugins/baremetal/iarewtoolchain.cpp10
-rw-r--r--src/plugins/baremetal/keiltoolchain.cpp10
-rw-r--r--src/plugins/baremetal/sdcctoolchain.cpp10
-rw-r--r--src/plugins/beautifier/artisticstyle/artisticstyleoptionspage.cpp2
-rw-r--r--src/plugins/beautifier/clangformat/clangformatoptionspage.cpp2
-rw-r--r--src/plugins/beautifier/uncrustify/uncrustifyoptionspage.cpp6
-rw-r--r--src/plugins/clangtools/settingswidget.cpp2
-rw-r--r--src/plugins/cmakeprojectmanager/cmakesettingspage.cpp14
-rw-r--r--src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp4
-rw-r--r--src/plugins/debugger/breakhandler.cpp2
-rw-r--r--src/plugins/debugger/debuggerdialogs.cpp8
-rw-r--r--src/plugins/debugger/debuggeritemmanager.cpp8
-rw-r--r--src/plugins/debugger/loadcoredialog.cpp6
-rw-r--r--src/plugins/debugger/unstartedappwatcherdialog.cpp2
-rw-r--r--src/plugins/imageviewer/exportdialog.cpp4
-rw-r--r--src/plugins/imageviewer/multiexportdialog.cpp4
-rw-r--r--src/plugins/ios/iossettingswidget.cpp6
-rw-r--r--src/plugins/nim/project/nimtoolchainfactory.cpp2
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp10
-rw-r--r--src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp10
-rw-r--r--src/plugins/projectexplorer/gcctoolchain.cpp8
-rw-r--r--src/plugins/projectexplorer/importwidget.cpp6
-rw-r--r--src/plugins/projectexplorer/kitinformation.cpp6
-rw-r--r--src/plugins/projectexplorer/msvctoolchain.cpp4
-rw-r--r--src/plugins/projectexplorer/projectconfigurationaspects.cpp2
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp4
-rw-r--r--src/plugins/projectexplorer/selectablefilesmodel.cpp4
-rw-r--r--src/plugins/projectexplorer/targetsetupwidget.cpp6
-rw-r--r--src/plugins/qbsprojectmanager/qbsbuildstep.cpp2
-rw-r--r--src/plugins/qbsprojectmanager/qbssettings.cpp6
-rw-r--r--src/plugins/qmakeprojectmanager/addlibrarywizard.cpp2
-rw-r--r--src/plugins/qnx/qnxdebugsupport.cpp2
-rw-r--r--src/plugins/qnx/qnxtoolchain.cpp14
-rw-r--r--src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp4
-rw-r--r--src/plugins/texteditor/findinfiles.cpp6
42 files changed, 123 insertions, 123 deletions
diff --git a/src/plugins/android/androidsettingswidget.cpp b/src/plugins/android/androidsettingswidget.cpp
index 8835df58ec1..8169358d943 100644
--- a/src/plugins/android/androidsettingswidget.cpp
+++ b/src/plugins/android/androidsettingswidget.cpp
@@ -477,21 +477,21 @@ AndroidSettingsWidget::AndroidSettingsWidget()
Utils::FilePath currentJdkPath = m_androidConfig.openJDKLocation();
if (currentJdkPath.isEmpty())
currentJdkPath = findJdkInCommonPaths();
- m_ui->OpenJDKLocationPathChooser->setFileName(currentJdkPath);
+ m_ui->OpenJDKLocationPathChooser->setFilePath(currentJdkPath);
m_ui->OpenJDKLocationPathChooser->setPromptDialogTitle(tr("Select JDK Path"));
Utils::FilePath currentSDKPath = m_androidConfig.sdkLocation();
if (currentSDKPath.isEmpty())
currentSDKPath = getDefaultSdkPath();
- m_ui->SDKLocationPathChooser->setFileName(currentSDKPath);
+ m_ui->SDKLocationPathChooser->setFilePath(currentSDKPath);
m_ui->SDKLocationPathChooser->setPromptDialogTitle(tr("Select Android SDK folder"));
m_ui->openSslPathChooser->setPromptDialogTitle(tr("Select OpenSSL Include Project File"));
Utils::FilePath currentOpenSslPath = m_androidConfig.openSslLocation();
if (currentOpenSslPath.isEmpty())
currentOpenSslPath = currentSDKPath.pathAppended("android_openssl");
- m_ui->openSslPathChooser->setFileName(currentOpenSslPath);
+ m_ui->openSslPathChooser->setFilePath(currentOpenSslPath);
m_ui->DataPartitionSizeSpinBox->setValue(m_androidConfig.partitionSize());
m_ui->CreateKitCheckBox->setChecked(m_androidConfig.automaticKitCreation());
@@ -808,7 +808,7 @@ void AndroidSettingsWidget::openOpenJDKDownloadUrl()
void AndroidSettingsWidget::downloadOpenSslRepo(const bool silent)
{
- const Utils::FilePath openSslPath = m_ui->openSslPathChooser->fileName();
+ const Utils::FilePath openSslPath = m_ui->openSslPathChooser->filePath();
const QString openSslCloneTitle(tr("OpenSSL Cloning"));
auto openSslSummaryWidget = static_cast<SummaryWidget *>(m_ui->openSslDetailsWidget->widget());
diff --git a/src/plugins/baremetal/debugservers/gdb/eblinkgdbserverprovider.cpp b/src/plugins/baremetal/debugservers/gdb/eblinkgdbserverprovider.cpp
index b663033e949..d54b701460f 100644
--- a/src/plugins/baremetal/debugservers/gdb/eblinkgdbserverprovider.cpp
+++ b/src/plugins/baremetal/debugservers/gdb/eblinkgdbserverprovider.cpp
@@ -356,9 +356,9 @@ void EBlinkGdbServerProviderConfigWidget::setFromProvider()
Q_ASSERT(p);
m_gdbHostWidget->setChannel(p->channel());
- m_executableFileChooser->setFileName(p->m_executableFile);
+ m_executableFileChooser->setFilePath(p->m_executableFile);
m_verboseLevelSpinBox->setValue(p->m_verboseLevel);
- m_scriptFileChooser->setFileName(p->m_deviceScript);
+ m_scriptFileChooser->setFilePath(p->m_deviceScript);
m_interfaceTypeComboBox->setCurrentIndex(p->m_interfaceType);
m_resetOnConnectCheckBox->setChecked(p->m_interfaceResetOnConnect);
m_interfaceSpeedSpinBox->setValue(p->m_interfaceSpeed);
@@ -376,9 +376,9 @@ void EBlinkGdbServerProviderConfigWidget::apply()
Q_ASSERT(p);
p->setChannel(m_gdbHostWidget->channel());
- p->m_executableFile = m_executableFileChooser->fileName();
+ p->m_executableFile = m_executableFileChooser->filePath();
p->m_verboseLevel = m_verboseLevelSpinBox->value();
- p->m_deviceScript = m_scriptFileChooser->fileName();
+ p->m_deviceScript = m_scriptFileChooser->filePath();
p->m_interfaceType = interfaceTypeFromWidget();
p->m_interfaceResetOnConnect = m_resetOnConnectCheckBox->isChecked();
p->m_interfaceSpeed = m_interfaceSpeedSpinBox->value();
diff --git a/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp b/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp
index 4e4e73a90c6..77dfee82ff3 100644
--- a/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp
+++ b/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.cpp
@@ -311,12 +311,12 @@ void GdbServerProviderConfigWidget::populateStartupModes()
Utils::FilePath GdbServerProviderConfigWidget::peripheralDescriptionFile() const
{
- return m_peripheralDescriptionFileChooser->fileName();
+ return m_peripheralDescriptionFileChooser->filePath();
}
void GdbServerProviderConfigWidget::setPeripheralDescriptionFile(const Utils::FilePath &file)
{
- m_peripheralDescriptionFileChooser->setFileName(file);
+ m_peripheralDescriptionFileChooser->setFilePath(file);
}
void GdbServerProviderConfigWidget::setFromProvider()
diff --git a/src/plugins/baremetal/debugservers/gdb/jlinkgdbserverprovider.cpp b/src/plugins/baremetal/debugservers/gdb/jlinkgdbserverprovider.cpp
index 3d6d9d0596c..047c1feba23 100644
--- a/src/plugins/baremetal/debugservers/gdb/jlinkgdbserverprovider.cpp
+++ b/src/plugins/baremetal/debugservers/gdb/jlinkgdbserverprovider.cpp
@@ -313,7 +313,7 @@ void JLinkGdbServerProviderConfigWidget::apply()
Q_ASSERT(p);
p->setChannel(m_hostWidget->channel());
- p->m_executableFile = m_executableFileChooser->fileName();
+ p->m_executableFile = m_executableFileChooser->filePath();
p->m_jlinkDevice = m_jlinkDeviceLineEdit->text();
p->m_jlinkHost = m_hostInterfaceComboBox->currentText();
p->m_jlinkHostAddr = m_hostInterfaceAddressLineEdit->text();
@@ -357,7 +357,7 @@ void JLinkGdbServerProviderConfigWidget::setFromProvider()
const QSignalBlocker blocker(this);
m_hostWidget->setChannel(p->channel());
- m_executableFileChooser->setFileName(p->m_executableFile);
+ m_executableFileChooser->setFilePath(p->m_executableFile);
m_jlinkDeviceLineEdit->setText(p->m_jlinkDevice);
m_additionalArgumentsTextEdit->setPlainText(p->m_additionalArguments);
m_jlinkDeviceLineEdit->setText( p->m_jlinkDevice);
diff --git a/src/plugins/baremetal/debugservers/gdb/openocdgdbserverprovider.cpp b/src/plugins/baremetal/debugservers/gdb/openocdgdbserverprovider.cpp
index 57692d0d53c..093f1cbc940 100644
--- a/src/plugins/baremetal/debugservers/gdb/openocdgdbserverprovider.cpp
+++ b/src/plugins/baremetal/debugservers/gdb/openocdgdbserverprovider.cpp
@@ -259,9 +259,9 @@ void OpenOcdGdbServerProviderConfigWidget::apply()
Q_ASSERT(p);
p->setChannel(m_hostWidget->channel());
- p->m_executableFile = m_executableFileChooser->fileName();
- p->m_rootScriptsDir = m_rootScriptsDirChooser->fileName().toString();
- p->m_configurationFile = m_configurationFileChooser->fileName().toString();
+ p->m_executableFile = m_executableFileChooser->filePath();
+ p->m_rootScriptsDir = m_rootScriptsDirChooser->filePath().toString();
+ p->m_configurationFile = m_configurationFileChooser->filePath().toString();
p->m_additionalArguments = m_additionalArgumentsLineEdit->text();
p->setInitCommands(m_initCommandsTextEdit->toPlainText());
p->setResetCommands(m_resetCommandsTextEdit->toPlainText());
@@ -290,9 +290,9 @@ void OpenOcdGdbServerProviderConfigWidget::setFromProvider()
const QSignalBlocker blocker(this);
startupModeChanged();
m_hostWidget->setChannel(p->channel());
- m_executableFileChooser->setFileName(p->m_executableFile);
- m_rootScriptsDirChooser->setFileName(Utils::FilePath::fromString(p->m_rootScriptsDir));
- m_configurationFileChooser->setFileName(Utils::FilePath::fromString(p->m_configurationFile));
+ m_executableFileChooser->setFilePath(p->m_executableFile);
+ m_rootScriptsDirChooser->setFilePath(Utils::FilePath::fromString(p->m_rootScriptsDir));
+ m_configurationFileChooser->setFilePath(Utils::FilePath::fromString(p->m_configurationFile));
m_additionalArgumentsLineEdit->setText(p->m_additionalArguments);
m_initCommandsTextEdit->setPlainText(p->initCommands());
m_resetCommandsTextEdit->setPlainText(p->resetCommands());
diff --git a/src/plugins/baremetal/debugservers/gdb/stlinkutilgdbserverprovider.cpp b/src/plugins/baremetal/debugservers/gdb/stlinkutilgdbserverprovider.cpp
index eabba4c0834..c9379e72a1d 100644
--- a/src/plugins/baremetal/debugservers/gdb/stlinkutilgdbserverprovider.cpp
+++ b/src/plugins/baremetal/debugservers/gdb/stlinkutilgdbserverprovider.cpp
@@ -254,7 +254,7 @@ void StLinkUtilGdbServerProviderConfigWidget::apply()
Q_ASSERT(p);
p->setChannel(m_hostWidget->channel());
- p->m_executableFile = m_executableFileChooser->fileName();
+ p->m_executableFile = m_executableFileChooser->filePath();
p->m_verboseLevel = m_verboseLevelSpinBox->value();
p->m_extendedMode = m_extendedModeCheckBox->isChecked();
p->m_resetBoard = m_resetBoardCheckBox->isChecked();
@@ -312,7 +312,7 @@ void StLinkUtilGdbServerProviderConfigWidget::setFromProvider()
const QSignalBlocker blocker(this);
m_hostWidget->setChannel(p->channel());
- m_executableFileChooser->setFileName(p->m_executableFile);
+ m_executableFileChooser->setFilePath(p->m_executableFile);
m_verboseLevelSpinBox->setValue(p->m_verboseLevel);
m_extendedModeCheckBox->setChecked(p->m_extendedMode);
m_resetBoardCheckBox->setChecked(p->m_resetBoard);
diff --git a/src/plugins/baremetal/debugservers/uvsc/uvscserverprovider.cpp b/src/plugins/baremetal/debugservers/uvsc/uvscserverprovider.cpp
index a50765ad244..d56f38e2002 100644
--- a/src/plugins/baremetal/debugservers/uvsc/uvscserverprovider.cpp
+++ b/src/plugins/baremetal/debugservers/uvsc/uvscserverprovider.cpp
@@ -298,7 +298,7 @@ UvscServerProviderConfigWidget::UvscServerProviderConfigWidget(UvscServerProvide
this, &UvscServerProviderConfigWidget::dirty);
auto updateSelectors = [this]() {
- const FilePath toolsIniFile = m_toolsIniChooser->fileName();
+ const FilePath toolsIniFile = m_toolsIniChooser->filePath();
m_deviceSelector->setToolsIniFile(toolsIniFile);
m_driverSelector->setToolsIniFile(toolsIniFile);
};
@@ -324,12 +324,12 @@ void UvscServerProviderConfigWidget::discard()
void UvscServerProviderConfigWidget::setToolsIniFile(const Utils::FilePath &toolsIniFile)
{
- m_toolsIniChooser->setFileName(toolsIniFile);
+ m_toolsIniChooser->setFilePath(toolsIniFile);
}
Utils::FilePath UvscServerProviderConfigWidget::toolsIniFile() const
{
- return m_toolsIniChooser->fileName();
+ return m_toolsIniChooser->filePath();
}
void UvscServerProviderConfigWidget::setDeviceSelection(const DeviceSelection &deviceSelection)
@@ -356,7 +356,7 @@ void UvscServerProviderConfigWidget::setFromProvider()
{
const auto p = static_cast<UvscServerProvider *>(m_provider);
m_hostWidget->setChannel(p->channel());
- m_toolsIniChooser->setFileName(p->toolsIniFile());
+ m_toolsIniChooser->setFilePath(p->toolsIniFile());
m_deviceSelector->setSelection(p->deviceSelection());
m_driverSelector->setSelection(p->driverSelection());
}
diff --git a/src/plugins/baremetal/iarewtoolchain.cpp b/src/plugins/baremetal/iarewtoolchain.cpp
index 34afc316ef1..566d2589a50 100644
--- a/src/plugins/baremetal/iarewtoolchain.cpp
+++ b/src/plugins/baremetal/iarewtoolchain.cpp
@@ -562,7 +562,7 @@ void IarToolChainConfigWidget::applyImpl()
const auto tc = static_cast<IarToolChain *>(toolChain());
const QString displayName = tc->displayName();
- tc->setCompilerCommand(m_compilerCommand->fileName());
+ tc->setCompilerCommand(m_compilerCommand->filePath());
tc->setTargetAbi(m_abiWidget->currentAbi());
tc->setDisplayName(displayName);
@@ -578,7 +578,7 @@ void IarToolChainConfigWidget::applyImpl()
bool IarToolChainConfigWidget::isDirtyImpl() const
{
const auto tc = static_cast<IarToolChain *>(toolChain());
- return m_compilerCommand->fileName() != tc->compilerCommand()
+ return m_compilerCommand->filePath() != tc->compilerCommand()
|| m_abiWidget->currentAbi() != tc->targetAbi()
;
}
@@ -593,15 +593,15 @@ void IarToolChainConfigWidget::setFromToolchain()
{
const QSignalBlocker blocker(this);
const auto tc = static_cast<IarToolChain *>(toolChain());
- m_compilerCommand->setFileName(tc->compilerCommand());
+ m_compilerCommand->setFilePath(tc->compilerCommand());
m_abiWidget->setAbis({}, tc->targetAbi());
- const bool haveCompiler = compilerExists(m_compilerCommand->fileName());
+ const bool haveCompiler = compilerExists(m_compilerCommand->filePath());
m_abiWidget->setEnabled(haveCompiler && !tc->isAutoDetected());
}
void IarToolChainConfigWidget::handleCompilerCommandChange()
{
- const FilePath compilerPath = m_compilerCommand->fileName();
+ const FilePath compilerPath = m_compilerCommand->filePath();
const bool haveCompiler = compilerExists(compilerPath);
if (haveCompiler) {
const auto env = Environment::systemEnvironment();
diff --git a/src/plugins/baremetal/keiltoolchain.cpp b/src/plugins/baremetal/keiltoolchain.cpp
index 96ee6ec0f84..c6d8d276902 100644
--- a/src/plugins/baremetal/keiltoolchain.cpp
+++ b/src/plugins/baremetal/keiltoolchain.cpp
@@ -620,7 +620,7 @@ void KeilToolChainConfigWidget::applyImpl()
const auto tc = static_cast<KeilToolChain *>(toolChain());
const QString displayName = tc->displayName();
- tc->setCompilerCommand(m_compilerCommand->fileName());
+ tc->setCompilerCommand(m_compilerCommand->filePath());
tc->setTargetAbi(m_abiWidget->currentAbi());
tc->setDisplayName(displayName);
@@ -636,7 +636,7 @@ void KeilToolChainConfigWidget::applyImpl()
bool KeilToolChainConfigWidget::isDirtyImpl() const
{
const auto tc = static_cast<KeilToolChain *>(toolChain());
- return m_compilerCommand->fileName() != tc->compilerCommand()
+ return m_compilerCommand->filePath() != tc->compilerCommand()
|| m_abiWidget->currentAbi() != tc->targetAbi()
;
}
@@ -651,15 +651,15 @@ void KeilToolChainConfigWidget::setFromToolChain()
{
const QSignalBlocker blocker(this);
const auto tc = static_cast<KeilToolChain *>(toolChain());
- m_compilerCommand->setFileName(tc->compilerCommand());
+ m_compilerCommand->setFilePath(tc->compilerCommand());
m_abiWidget->setAbis({}, tc->targetAbi());
- const bool haveCompiler = compilerExists(m_compilerCommand->fileName());
+ const bool haveCompiler = compilerExists(m_compilerCommand->filePath());
m_abiWidget->setEnabled(haveCompiler && !tc->isAutoDetected());
}
void KeilToolChainConfigWidget::handleCompilerCommandChange()
{
- const FilePath compilerPath = m_compilerCommand->fileName();
+ const FilePath compilerPath = m_compilerCommand->filePath();
const bool haveCompiler = compilerExists(compilerPath);
if (haveCompiler) {
const auto env = Environment::systemEnvironment();
diff --git a/src/plugins/baremetal/sdcctoolchain.cpp b/src/plugins/baremetal/sdcctoolchain.cpp
index fcdf639e89a..321f1917001 100644
--- a/src/plugins/baremetal/sdcctoolchain.cpp
+++ b/src/plugins/baremetal/sdcctoolchain.cpp
@@ -528,7 +528,7 @@ void SdccToolChainConfigWidget::applyImpl()
const auto tc = static_cast<SdccToolChain *>(toolChain());
const QString displayName = tc->displayName();
- tc->setCompilerCommand(m_compilerCommand->fileName());
+ tc->setCompilerCommand(m_compilerCommand->filePath());
tc->setTargetAbi(m_abiWidget->currentAbi());
tc->setDisplayName(displayName);
@@ -544,7 +544,7 @@ void SdccToolChainConfigWidget::applyImpl()
bool SdccToolChainConfigWidget::isDirtyImpl() const
{
const auto tc = static_cast<SdccToolChain *>(toolChain());
- return m_compilerCommand->fileName() != tc->compilerCommand()
+ return m_compilerCommand->filePath() != tc->compilerCommand()
|| m_abiWidget->currentAbi() != tc->targetAbi()
;
}
@@ -559,15 +559,15 @@ void SdccToolChainConfigWidget::setFromToolchain()
{
const QSignalBlocker blocker(this);
const auto tc = static_cast<SdccToolChain *>(toolChain());
- m_compilerCommand->setFileName(tc->compilerCommand());
+ m_compilerCommand->setFilePath(tc->compilerCommand());
m_abiWidget->setAbis({}, tc->targetAbi());
- const bool haveCompiler = compilerExists(m_compilerCommand->fileName());
+ const bool haveCompiler = compilerExists(m_compilerCommand->filePath());
m_abiWidget->setEnabled(haveCompiler && !tc->isAutoDetected());
}
void SdccToolChainConfigWidget::handleCompilerCommandChange()
{
- const FilePath compilerPath = m_compilerCommand->fileName();
+ const FilePath compilerPath = m_compilerCommand->filePath();
const bool haveCompiler = compilerExists(compilerPath);
if (haveCompiler) {
const auto env = Environment::systemEnvironment();
diff --git a/src/plugins/beautifier/artisticstyle/artisticstyleoptionspage.cpp b/src/plugins/beautifier/artisticstyle/artisticstyleoptionspage.cpp
index 66292f91c07..63b4ed28d01 100644
--- a/src/plugins/beautifier/artisticstyle/artisticstyleoptionspage.cpp
+++ b/src/plugins/beautifier/artisticstyle/artisticstyleoptionspage.cpp
@@ -82,7 +82,7 @@ void ArtisticStyleOptionsPageWidget::apply()
m_settings->setSupportedMimeTypes(ui.mime->text());
m_settings->setUseOtherFiles(ui.useOtherFiles->isChecked());
m_settings->setUseSpecificConfigFile(ui.useSpecificConfigFile->isChecked());
- m_settings->setSpecificConfigFile(ui.specificConfigFile->fileName());
+ m_settings->setSpecificConfigFile(ui.specificConfigFile->filePath());
m_settings->setUseHomeFile(ui.useHomeFile->isChecked());
m_settings->setUseCustomStyle(ui.useCustomStyle->isChecked());
m_settings->setCustomStyle(ui.configurations->currentConfiguration());
diff --git a/src/plugins/beautifier/clangformat/clangformatoptionspage.cpp b/src/plugins/beautifier/clangformat/clangformatoptionspage.cpp
index 0ac10b98bfb..d6f85baa98a 100644
--- a/src/plugins/beautifier/clangformat/clangformatoptionspage.cpp
+++ b/src/plugins/beautifier/clangformat/clangformatoptionspage.cpp
@@ -71,7 +71,7 @@ ClangFormatOptionsPageWidget::ClangFormatOptionsPageWidget(ClangFormatSettings *
});
ui.configurations->setSettings(m_settings);
- ui.command->setFileName(m_settings->command());
+ ui.command->setFilePath(m_settings->command());
ui.mime->setText(m_settings->supportedMimeTypesAsString());
const int predefinedStyleIndex = ui.predefinedStyle->findText(m_settings->predefinedStyle());
if (predefinedStyleIndex != -1)
diff --git a/src/plugins/beautifier/uncrustify/uncrustifyoptionspage.cpp b/src/plugins/beautifier/uncrustify/uncrustifyoptionspage.cpp
index c9d98f802cb..07b447d529b 100644
--- a/src/plugins/beautifier/uncrustify/uncrustifyoptionspage.cpp
+++ b/src/plugins/beautifier/uncrustify/uncrustifyoptionspage.cpp
@@ -67,12 +67,12 @@ UncrustifyOptionsPageWidget::UncrustifyOptionsPageWidget(UncrustifySettings *set
connect(ui.command, &Utils::PathChooser::validChanged, ui.options, &QWidget::setEnabled);
ui.configurations->setSettings(m_settings);
- ui.command->setFileName(m_settings->command());
+ ui.command->setFilePath(m_settings->command());
ui.mime->setText(m_settings->supportedMimeTypesAsString());
ui.useOtherFiles->setChecked(m_settings->useOtherFiles());
ui.useHomeFile->setChecked(m_settings->useHomeFile());
ui.useSpecificFile->setChecked(m_settings->useSpecificConfigFile());
- ui.uncrusifyFilePath->setFileName(m_settings->specificConfigFile());
+ ui.uncrusifyFilePath->setFilePath(m_settings->specificConfigFile());
ui.useCustomStyle->setChecked(m_settings->useCustomStyle());
ui.configurations->setCurrentConfiguration(m_settings->customStyle());
ui.formatEntireFileFallback->setChecked(m_settings->formatEntireFileFallback());
@@ -85,7 +85,7 @@ void UncrustifyOptionsPageWidget::apply()
m_settings->setUseOtherFiles(ui.useOtherFiles->isChecked());
m_settings->setUseHomeFile(ui.useHomeFile->isChecked());
m_settings->setUseSpecificConfigFile(ui.useSpecificFile->isChecked());
- m_settings->setSpecificConfigFile(ui.uncrusifyFilePath->fileName());
+ m_settings->setSpecificConfigFile(ui.uncrusifyFilePath->filePath());
m_settings->setUseCustomStyle(ui.useCustomStyle->isChecked());
m_settings->setCustomStyle(ui.configurations->currentConfiguration());
m_settings->setFormatEntireFileFallback(ui.formatEntireFileFallback->isChecked());
diff --git a/src/plugins/clangtools/settingswidget.cpp b/src/plugins/clangtools/settingswidget.cpp
index 9b41ce631ba..a095450d266 100644
--- a/src/plugins/clangtools/settingswidget.cpp
+++ b/src/plugins/clangtools/settingswidget.cpp
@@ -54,7 +54,7 @@ static void setupPathChooser(Utils::PathChooser *const chooser,
chooser->setExpectedKind(Utils::PathChooser::ExistingCommand);
chooser->setHistoryCompleter(historyCompleterId);
chooser->setValidationFunction([chooser](Utils::FancyLineEdit *edit, QString *errorMessage) {
- const QString currentFilePath = chooser->fileName().toString();
+ const QString currentFilePath = chooser->filePath().toString();
Utils::PathChooser pc;
Utils::PathChooser *helperPathChooser;
if (currentFilePath.isEmpty()) {
diff --git a/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp b/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp
index 02536d61233..af0d089a4eb 100644
--- a/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp
@@ -469,7 +469,7 @@ CMakeToolItemConfigWidget::CMakeToolItemConfigWidget(CMakeToolItemModel *model)
connect(m_binaryChooser, &PathChooser::rawPathChanged, this, [this]() {
updateQchFilePath();
- m_qchFileChooser->setBaseDirectory(m_binaryChooser->fileName().parentDir());
+ m_qchFileChooser->setBaseDirectory(m_binaryChooser->filePath().parentDir());
store();
});
connect(m_qchFileChooser, &PathChooser::rawPathChanged, this, &CMakeToolItemConfigWidget::store);
@@ -485,16 +485,16 @@ void CMakeToolItemConfigWidget::store() const
if (!m_loadingItem && m_id.isValid())
m_model->updateCMakeTool(m_id,
m_displayNameLineEdit->text(),
- m_binaryChooser->fileName(),
- m_qchFileChooser->fileName(),
+ m_binaryChooser->filePath(),
+ m_qchFileChooser->filePath(),
m_autoRunCheckBox->checkState() == Qt::Checked,
m_autoCreateBuildDirectoryCheckBox->checkState() == Qt::Checked);
}
void CMakeToolItemConfigWidget::updateQchFilePath()
{
- if (m_qchFileChooser->fileName().isEmpty())
- m_qchFileChooser->setFileName(CMakeTool::searchQchFile(m_binaryChooser->fileName()));
+ if (m_qchFileChooser->filePath().isEmpty())
+ m_qchFileChooser->setFilePath(CMakeTool::searchQchFile(m_binaryChooser->filePath()));
}
void CMakeToolItemConfigWidget::load(const CMakeToolTreeItem *item)
@@ -511,11 +511,11 @@ void CMakeToolItemConfigWidget::load(const CMakeToolTreeItem *item)
m_displayNameLineEdit->setText(item->m_name);
m_binaryChooser->setReadOnly(item->m_autodetected);
- m_binaryChooser->setFileName(item->m_executable);
+ m_binaryChooser->setFilePath(item->m_executable);
m_qchFileChooser->setReadOnly(item->m_autodetected);
m_qchFileChooser->setBaseDirectory(item->m_executable.parentDir());
- m_qchFileChooser->setFileName(item->m_qchFile);
+ m_qchFileChooser->setFilePath(item->m_qchFile);
m_autoRunCheckBox->setChecked(item->m_isAutoRun);
m_autoCreateBuildDirectoryCheckBox->setChecked(item->m_autoCreateBuildDirectory);
diff --git a/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp b/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp
index 9be346a0fda..a4a6320d1c9 100644
--- a/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp
+++ b/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp
@@ -86,7 +86,7 @@ void ConfigModelItemDelegate::setEditorData(QWidget *editor, const QModelIndex &
ConfigModel::DataItem data = ConfigModel::dataItemFromIndex(index);
if (data.type == ConfigModel::DataItem::FILE || data.type == ConfigModel::DataItem::DIRECTORY) {
auto edit = static_cast<Utils::PathChooser *>(editor);
- edit->setFileName(Utils::FilePath::fromUserInput(data.value));
+ edit->setFilePath(Utils::FilePath::fromUserInput(data.value));
return;
} else if (!data.values.isEmpty()) {
auto edit = static_cast<QComboBox *>(editor);
@@ -114,7 +114,7 @@ void ConfigModelItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *
if (data.type == ConfigModel::DataItem::FILE || data.type == ConfigModel::DataItem::DIRECTORY) {
auto edit = static_cast<Utils::PathChooser *>(editor);
if (edit->rawPath() != data.value)
- model->setData(index, edit->fileName().toString(), Qt::EditRole);
+ model->setData(index, edit->filePath().toString(), Qt::EditRole);
return;
} else if (!data.values.isEmpty()) {
auto edit = static_cast<QComboBox *>(editor);
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 7c8920c0952..89bad28ed1d 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -702,7 +702,7 @@ void BreakpointDialog::setParts(unsigned mask, const BreakpointParameters &data)
m_lineEditMessage->setText(data.message);
if (mask & FileAndLinePart) {
- m_pathChooserFileName->setFileName(data.fileName);
+ m_pathChooserFileName->setFilePath(data.fileName);
m_lineEditLineNumber->setText(QString::number(data.lineNumber));
}
diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp
index 226026f99ca..00e6d269e1a 100644
--- a/src/plugins/debugger/debuggerdialogs.cpp
+++ b/src/plugins/debugger/debuggerdialogs.cpp
@@ -479,8 +479,8 @@ StartApplicationParameters StartApplicationDialog::parameters() const
StartApplicationParameters result;
result.serverPort = d->serverPortSpinBox->value();
result.serverAddress = d->channelOverrideEdit->text();
- result.runnable.executable = d->localExecutablePathChooser->fileName();
- result.serverStartScript = d->serverStartScriptPathChooser->fileName();
+ result.runnable.executable = d->localExecutablePathChooser->filePath();
+ result.serverStartScript = d->serverStartScriptPathChooser->filePath();
result.serverInitCommands = d->serverInitCommandsTextEdit->toPlainText();
result.serverResetCommands = d->serverResetCommandsTextEdit->toPlainText();
result.kitId = d->kitChooser->currentKitId();
@@ -497,8 +497,8 @@ void StartApplicationDialog::setParameters(const StartApplicationParameters &p)
d->kitChooser->setCurrentKitId(p.kitId);
d->serverPortSpinBox->setValue(p.serverPort);
d->channelOverrideEdit->setText(p.serverAddress);
- d->localExecutablePathChooser->setFileName(p.runnable.executable);
- d->serverStartScriptPathChooser->setFileName(p.serverStartScript);
+ d->localExecutablePathChooser->setFilePath(p.runnable.executable);
+ d->serverStartScriptPathChooser->setFilePath(p.serverStartScript);
d->serverInitCommandsTextEdit->setPlainText(p.serverInitCommands);
d->serverResetCommandsTextEdit->setPlainText(p.serverResetCommands);
d->debuginfoPathChooser->setPath(p.debugInfoLocation);
diff --git a/src/plugins/debugger/debuggeritemmanager.cpp b/src/plugins/debugger/debuggeritemmanager.cpp
index 34ea3b46cd3..1a4f0f845e2 100644
--- a/src/plugins/debugger/debuggeritemmanager.cpp
+++ b/src/plugins/debugger/debuggeritemmanager.cpp
@@ -348,8 +348,8 @@ DebuggerItem DebuggerItemConfigWidget::item() const
{
DebuggerItem item(m_id);
item.setUnexpandedDisplayName(m_displayNameLineEdit->text());
- item.setCommand(m_binaryChooser->fileName());
- item.setWorkingDirectory(m_workingDirectoryChooser->fileName());
+ item.setCommand(m_binaryChooser->filePath());
+ item.setWorkingDirectory(m_workingDirectoryChooser->filePath());
item.setAutoDetected(m_autodetected);
Abis abiList;
const QStringList abis = m_abis->text().split(QRegExp("[^A-Za-z0-9-_]+"));
@@ -390,10 +390,10 @@ void DebuggerItemConfigWidget::load(const DebuggerItem *item)
m_typeLineEdit->setText(item->engineTypeName());
m_binaryChooser->setReadOnly(item->isAutoDetected());
- m_binaryChooser->setFileName(item->command());
+ m_binaryChooser->setFilePath(item->command());
m_workingDirectoryChooser->setReadOnly(item->isAutoDetected());
- m_workingDirectoryChooser->setFileName(item->workingDirectory());
+ m_workingDirectoryChooser->setFilePath(item->workingDirectory());
QString text;
QString versionCommand;
diff --git a/src/plugins/debugger/loadcoredialog.cpp b/src/plugins/debugger/loadcoredialog.cpp
index d4af42714d2..aa4121ebd8e 100644
--- a/src/plugins/debugger/loadcoredialog.cpp
+++ b/src/plugins/debugger/loadcoredialog.cpp
@@ -370,9 +370,9 @@ void AttachCoreDialog::coreFileChanged(const QString &core)
Runnable debugger = DebuggerKitAspect::runnable(k);
CoreInfo cinfo = CoreInfo::readExecutableNameFromCore(debugger, core);
if (!cinfo.foundExecutableName.isEmpty())
- d->symbolFileName->setFileName(FilePath::fromString(cinfo.foundExecutableName));
+ d->symbolFileName->setFilePath(FilePath::fromString(cinfo.foundExecutableName));
else if (!d->symbolFileName->isValid() && !cinfo.rawStringFromCore.isEmpty())
- d->symbolFileName->setFileName(FilePath::fromString(cinfo.rawStringFromCore));
+ d->symbolFileName->setFilePath(FilePath::fromString(cinfo.rawStringFromCore));
}
changed();
}
@@ -417,7 +417,7 @@ QString AttachCoreDialog::localCoreFile() const
FilePath AttachCoreDialog::symbolFile() const
{
- return d->symbolFileName->fileName();
+ return d->symbolFileName->filePath();
}
void AttachCoreDialog::setSymbolFile(const QString &symbolFileName)
diff --git a/src/plugins/debugger/unstartedappwatcherdialog.cpp b/src/plugins/debugger/unstartedappwatcherdialog.cpp
index c27ff5f72ef..a167cce735a 100644
--- a/src/plugins/debugger/unstartedappwatcherdialog.cpp
+++ b/src/plugins/debugger/unstartedappwatcherdialog.cpp
@@ -121,7 +121,7 @@ UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent)
if (isLocal(runConfig)) {
resetExecutable->setEnabled(true);
connect(resetExecutable, &QPushButton::clicked, this, [this, runnable] {
- m_pathChooser->setFileName(runnable.executable);
+ m_pathChooser->setFilePath(runnable.executable);
});
}
}
diff --git a/src/plugins/imageviewer/exportdialog.cpp b/src/plugins/imageviewer/exportdialog.cpp
index 37a59b96259..c96475659e7 100644
--- a/src/plugins/imageviewer/exportdialog.cpp
+++ b/src/plugins/imageviewer/exportdialog.cpp
@@ -187,12 +187,12 @@ void ExportDialog::exportHeightChanged(int height)
QString ExportDialog::exportFileName() const
{
- return m_pathChooser->fileName().toString();
+ return m_pathChooser->filePath().toString();
}
void ExportDialog::setExportFileName(const QString &f)
{
- m_pathChooser->setFileName(Utils::FilePath::fromString(f));
+ m_pathChooser->setFilePath(Utils::FilePath::fromString(f));
}
ExportData ExportDialog::exportData() const
diff --git a/src/plugins/imageviewer/multiexportdialog.cpp b/src/plugins/imageviewer/multiexportdialog.cpp
index b377cc72436..8e09033e273 100644
--- a/src/plugins/imageviewer/multiexportdialog.cpp
+++ b/src/plugins/imageviewer/multiexportdialog.cpp
@@ -329,7 +329,7 @@ void MultiExportDialog::accept()
QString MultiExportDialog::exportFileName() const
{
- return m_pathChooser->fileName().toString();
+ return m_pathChooser->filePath().toString();
}
void MultiExportDialog::setExportFileName(QString f)
@@ -337,7 +337,7 @@ void MultiExportDialog::setExportFileName(QString f)
const int lastDot = f.lastIndexOf('.');
if (lastDot != -1)
f.insert(lastDot, "-%1");
- m_pathChooser->setFileName(Utils::FilePath::fromString(f));
+ m_pathChooser->setFilePath(Utils::FilePath::fromString(f));
}
} // namespace Internal
diff --git a/src/plugins/ios/iossettingswidget.cpp b/src/plugins/ios/iossettingswidget.cpp
index d5612712cbc..609a3a9ce91 100644
--- a/src/plugins/ios/iossettingswidget.cpp
+++ b/src/plugins/ios/iossettingswidget.cpp
@@ -73,7 +73,7 @@ IosSettingsWidget::IosSettingsWidget()
m_ui->deviceView->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
m_ui->pathWidget->setExpectedKind(Utils::PathChooser::ExistingDirectory);
m_ui->pathWidget->lineEdit()->setReadOnly(true);
- m_ui->pathWidget->setFileName(IosConfigurations::screenshotDir());
+ m_ui->pathWidget->setFilePath(IosConfigurations::screenshotDir());
m_ui->pathWidget->addButton(tr("Screenshot"), this,
std::bind(&IosSettingsWidget::onScreenshot, this));
@@ -280,7 +280,7 @@ void IosSettingsWidget::onScreenshot()
const auto generatePath = [this](const SimulatorInfo &info) {
const QString fileName = QString("%1_%2_%3.png").arg(info.name).arg(info.runtimeName)
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_HH-mm-ss-z")).replace(' ', '_');
- return m_ui->pathWidget->fileName().pathAppended(fileName).toString();
+ return m_ui->pathWidget->filePath().pathAppended(fileName).toString();
};
QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this);
@@ -318,7 +318,7 @@ void IosSettingsWidget::onSelectionChanged()
void IosSettingsWidget::saveSettings()
{
IosConfigurations::setIgnoreAllDevices(!m_ui->deviceAskCheckBox->isChecked());
- IosConfigurations::setScreenshotDir(m_ui->pathWidget->fileName());
+ IosConfigurations::setScreenshotDir(m_ui->pathWidget->filePath());
}
} // namespace Internal
diff --git a/src/plugins/nim/project/nimtoolchainfactory.cpp b/src/plugins/nim/project/nimtoolchainfactory.cpp
index b79bad1969f..f1c8b5386b4 100644
--- a/src/plugins/nim/project/nimtoolchainfactory.cpp
+++ b/src/plugins/nim/project/nimtoolchainfactory.cpp
@@ -111,7 +111,7 @@ void NimToolChainConfigWidget::applyImpl()
Q_ASSERT(tc);
if (tc->isAutoDetected())
return;
- tc->setCompilerCommand(m_compilerCommand->fileName());
+ tc->setCompilerCommand(m_compilerCommand->filePath());
}
void NimToolChainConfigWidget::discardImpl()
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index 7c8de01d34a..4b466e42846 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -563,8 +563,8 @@ void CustomToolChainConfigWidget::applyImpl()
auto tc = static_cast<CustomToolChain *>(toolChain());
Q_ASSERT(tc);
QString displayName = tc->displayName();
- tc->setCompilerCommand(m_compilerCommand->fileName());
- tc->setMakeCommand(m_makeCommand->fileName());
+ tc->setCompilerCommand(m_compilerCommand->filePath());
+ tc->setMakeCommand(m_makeCommand->filePath());
tc->setTargetAbi(m_abiWidget->currentAbi());
Macros macros = Utils::transform<QVector>(
m_predefinedDetails->text().split('\n', QString::SkipEmptyParts),
@@ -588,8 +588,8 @@ void CustomToolChainConfigWidget::setFromToolchain()
// subwidgets are not yet connected!
QSignalBlocker blocker(this);
auto tc = static_cast<CustomToolChain *>(toolChain());
- m_compilerCommand->setFileName(tc->compilerCommand());
- m_makeCommand->setFileName(tc->makeCommand(Environment()));
+ m_compilerCommand->setFilePath(tc->compilerCommand());
+ m_makeCommand->setFilePath(tc->makeCommand(Environment()));
m_abiWidget->setAbis(Abis(), tc->targetAbi());
const QStringList macroLines = Utils::transform<QList>(tc->rawPredefinedMacros(), [](const Macro &m) {
return QString::fromUtf8(m.toKeyValue(QByteArray()));
@@ -607,7 +607,7 @@ bool CustomToolChainConfigWidget::isDirtyImpl() const
{
auto tc = static_cast<CustomToolChain *>(toolChain());
Q_ASSERT(tc);
- return m_compilerCommand->fileName() != tc->compilerCommand()
+ return m_compilerCommand->filePath() != tc->compilerCommand()
|| m_makeCommand->path() != tc->makeCommand(Environment()).toString()
|| m_abiWidget->currentAbi() != tc->targetAbi()
|| Macro::toMacros(m_predefinedDetails->text().toUtf8()) != tc->rawPredefinedMacros()
diff --git a/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp b/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
index 71b64b74580..288a5f9cb42 100644
--- a/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
+++ b/src/plugins/projectexplorer/devicesupport/sshsettingspage.cpp
@@ -109,13 +109,13 @@ void SshSettingsWidget::saveSettings()
SshSettings::setConnectionSharingEnabled(m_connectionSharingCheckBox.isChecked());
SshSettings::setConnectionSharingTimeout(m_connectionSharingSpinBox.value());
if (m_sshPathChanged)
- SshSettings::setSshFilePath(m_sshChooser.fileName());
+ SshSettings::setSshFilePath(m_sshChooser.filePath());
if (m_sftpPathChanged)
- SshSettings::setSftpFilePath(m_sftpChooser.fileName());
+ SshSettings::setSftpFilePath(m_sftpChooser.filePath());
if (m_askpassPathChanged)
- SshSettings::setAskpassFilePath(m_askpassChooser.fileName());
+ SshSettings::setAskpassFilePath(m_askpassChooser.filePath());
if (m_keygenPathChanged)
- SshSettings::setKeygenFilePath(m_keygenChooser.fileName());
+ SshSettings::setKeygenFilePath(m_keygenChooser.filePath());
SshSettings::storeSettings(Core::ICore::settings());
}
@@ -157,7 +157,7 @@ void SshSettingsWidget::setupPathChooser(PathChooser &chooser, const FilePath &i
bool &changedFlag)
{
chooser.setExpectedKind(PathChooser::ExistingCommand);
- chooser.setFileName(initialPath);
+ chooser.setFilePath(initialPath);
connect(&chooser, &PathChooser::pathChanged, [&changedFlag] { changedFlag = true; });
}
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp
index cb4f8ce216c..89bca8690c2 100644
--- a/src/plugins/projectexplorer/gcctoolchain.cpp
+++ b/src/plugins/projectexplorer/gcctoolchain.cpp
@@ -1274,7 +1274,7 @@ void GccToolChainConfigWidget::applyImpl()
auto tc = static_cast<GccToolChain *>(toolChain());
Q_ASSERT(tc);
QString displayName = tc->displayName();
- tc->setCompilerCommand(m_compilerCommand->fileName());
+ tc->setCompilerCommand(m_compilerCommand->filePath());
if (m_abiWidget) {
tc->setSupportedAbis(m_abiWidget->supportedAbis());
tc->setTargetAbi(m_abiWidget->currentAbi());
@@ -1300,7 +1300,7 @@ void GccToolChainConfigWidget::setFromToolchain()
// subwidgets are not yet connected!
QSignalBlocker blocker(this);
auto tc = static_cast<GccToolChain *>(toolChain());
- m_compilerCommand->setFileName(tc->compilerCommand());
+ m_compilerCommand->setFilePath(tc->compilerCommand());
m_platformCodeGenFlagsLineEdit->setText(QtcProcess::joinArgs(tc->platformCodeGenFlags()));
m_platformLinkerFlagsLineEdit->setText(QtcProcess::joinArgs(tc->platformLinkerFlags()));
if (m_abiWidget) {
@@ -1314,7 +1314,7 @@ bool GccToolChainConfigWidget::isDirtyImpl() const
{
auto tc = static_cast<GccToolChain *>(toolChain());
Q_ASSERT(tc);
- return m_compilerCommand->fileName() != tc->compilerCommand()
+ return m_compilerCommand->filePath() != tc->compilerCommand()
|| m_platformCodeGenFlagsLineEdit->text()
!= QtcProcess::joinArgs(tc->platformCodeGenFlags())
|| m_platformLinkerFlagsLineEdit->text()
@@ -1356,7 +1356,7 @@ void GccToolChainConfigWidget::handleCompilerCommandChange()
bool haveCompiler = false;
Abi currentAbi = m_abiWidget->currentAbi();
bool customAbi = m_abiWidget->isCustomAbi() && m_abiWidget->isEnabled();
- FilePath path = m_compilerCommand->fileName();
+ FilePath path = m_compilerCommand->filePath();
Abis abiList;
if (!path.isEmpty()) {
diff --git a/src/plugins/projectexplorer/importwidget.cpp b/src/plugins/projectexplorer/importwidget.cpp
index e74d283bbce..b7516b5fd7f 100644
--- a/src/plugins/projectexplorer/importwidget.cpp
+++ b/src/plugins/projectexplorer/importwidget.cpp
@@ -80,7 +80,7 @@ ImportWidget::ImportWidget(QWidget *parent) :
void ImportWidget::setCurrentDirectory(const Utils::FilePath &dir)
{
m_pathChooser->setBaseDirectory(dir);
- m_pathChooser->setFileName(dir);
+ m_pathChooser->setFilePath(dir);
}
bool ImportWidget::ownsReturnKey() const
@@ -90,10 +90,10 @@ bool ImportWidget::ownsReturnKey() const
void ImportWidget::handleImportRequest()
{
- Utils::FilePath dir = m_pathChooser->fileName();
+ Utils::FilePath dir = m_pathChooser->filePath();
emit importFrom(dir);
- m_pathChooser->setFileName(m_pathChooser->baseDirectory());
+ m_pathChooser->setFilePath(m_pathChooser->baseDirectory());
}
} // namespace Internal
diff --git a/src/plugins/projectexplorer/kitinformation.cpp b/src/plugins/projectexplorer/kitinformation.cpp
index ef0520e169a..a99c56c17aa 100644
--- a/src/plugins/projectexplorer/kitinformation.cpp
+++ b/src/plugins/projectexplorer/kitinformation.cpp
@@ -77,7 +77,7 @@ public:
m_chooser = new Utils::PathChooser;
m_chooser->setExpectedKind(Utils::PathChooser::ExistingDirectory);
m_chooser->setHistoryCompleter(QLatin1String("PE.SysRoot.History"));
- m_chooser->setFileName(SysRootKitAspect::sysRoot(k));
+ m_chooser->setFilePath(SysRootKitAspect::sysRoot(k));
connect(m_chooser, &Utils::PathChooser::pathChanged,
this, &SysRootKitAspectWidget::pathWasChanged);
}
@@ -92,13 +92,13 @@ private:
void refresh() override
{
if (!m_ignoreChange)
- m_chooser->setFileName(SysRootKitAspect::sysRoot(m_kit));
+ m_chooser->setFilePath(SysRootKitAspect::sysRoot(m_kit));
}
void pathWasChanged()
{
m_ignoreChange = true;
- SysRootKitAspect::setSysRoot(m_kit, m_chooser->fileName());
+ SysRootKitAspect::setSysRoot(m_kit, m_chooser->filePath());
m_ignoreChange = false;
}
diff --git a/src/plugins/projectexplorer/msvctoolchain.cpp b/src/plugins/projectexplorer/msvctoolchain.cpp
index 9969d4f0359..248af1bce0d 100644
--- a/src/plugins/projectexplorer/msvctoolchain.cpp
+++ b/src/plugins/projectexplorer/msvctoolchain.cpp
@@ -1466,7 +1466,7 @@ void ClangClToolChainConfigWidget::setFromClangClToolChain()
if (clangClToolChain->isAutoDetected())
m_llvmDirLabel->setText(QDir::toNativeSeparators(clangClToolChain->clangPath()));
else
- m_compilerCommand->setFileName(Utils::FilePath::fromString(clangClToolChain->clangPath()));
+ m_compilerCommand->setFilePath(Utils::FilePath::fromString(clangClToolChain->clangPath()));
}
static const MsvcToolChain *findMsvcToolChain(unsigned char wordWidth, Abi::OSFlavor flavor)
@@ -1579,7 +1579,7 @@ static QString compilerFromPath(const QString &path)
void ClangClToolChainConfigWidget::applyImpl()
{
- Utils::FilePath clangClPath = m_compilerCommand->fileName();
+ Utils::FilePath clangClPath = m_compilerCommand->filePath();
auto clangClToolChain = static_cast<ClangClToolChain *>(toolChain());
clangClToolChain->setClangPath(clangClPath.toString());
diff --git a/src/plugins/projectexplorer/projectconfigurationaspects.cpp b/src/plugins/projectexplorer/projectconfigurationaspects.cpp
index a52a40d4876..3b91f00e137 100644
--- a/src/plugins/projectexplorer/projectconfigurationaspects.cpp
+++ b/src/plugins/projectexplorer/projectconfigurationaspects.cpp
@@ -384,7 +384,7 @@ void BaseStringAspect::update()
: d->m_value;
if (d->m_pathChooserDisplay) {
- d->m_pathChooserDisplay->setFileName(FilePath::fromString(displayedString));
+ d->m_pathChooserDisplay->setFilePath(FilePath::fromString(displayedString));
d->updateWidgetFromCheckStatus(d->m_pathChooserDisplay.data());
}
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index 43dc4ee4122..a0645aa5100 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -516,7 +516,7 @@ public:
targetDirLayout->addWidget(new QLabel(tr("Target directory:"), this));
m_targetDirChooser = new PathChooser(this);
m_targetDirChooser->setExpectedKind(PathChooser::ExistingDirectory);
- m_targetDirChooser->setFileName(defaultTargetDir);
+ m_targetDirChooser->setFilePath(defaultTargetDir);
connect(m_targetDirChooser, &PathChooser::validChanged, this, [this](bool valid) {
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(valid);
});
@@ -549,7 +549,7 @@ public:
DropAction dropAction() const { return static_cast<DropAction>(m_buttonGroup->checkedId()); }
FilePath targetDir() const
{
- return m_targetDirChooser ? m_targetDirChooser->fileName() : FilePath();
+ return m_targetDirChooser ? m_targetDirChooser->filePath() : FilePath();
}
private:
diff --git a/src/plugins/projectexplorer/selectablefilesmodel.cpp b/src/plugins/projectexplorer/selectablefilesmodel.cpp
index 9351aa98986..4e524f2cad4 100644
--- a/src/plugins/projectexplorer/selectablefilesmodel.cpp
+++ b/src/plugins/projectexplorer/selectablefilesmodel.cpp
@@ -563,7 +563,7 @@ SelectableFilesWidget::SelectableFilesWidget(QWidget *parent) :
connect(m_baseDirChooser, &Utils::PathChooser::validChanged,
this, &SelectableFilesWidget::baseDirectoryChanged);
connect(m_startParsingButton, &QAbstractButton::clicked,
- this, [this]() { startParsing(m_baseDirChooser->fileName()); });
+ this, [this]() { startParsing(m_baseDirChooser->filePath()); });
m_selectFilesFilterLabel->setText(tr("Select files matching:"));
m_selectFilesFilterEdit->setText(selectFilter);
@@ -645,7 +645,7 @@ void SelectableFilesWidget::resetModel(const Utils::FilePath &path, const Utils:
connect(m_model, &SelectableFilesModel::checkedFilesChanged,
this, &SelectableFilesWidget::selectedFilesChanged);
- m_baseDirChooser->setFileName(path);
+ m_baseDirChooser->setFilePath(path);
m_view->setModel(m_model);
startParsing(path);
diff --git a/src/plugins/projectexplorer/targetsetupwidget.cpp b/src/plugins/projectexplorer/targetsetupwidget.cpp
index 281723dedd2..ca6e544350b 100644
--- a/src/plugins/projectexplorer/targetsetupwidget.cpp
+++ b/src/plugins/projectexplorer/targetsetupwidget.cpp
@@ -160,7 +160,7 @@ void TargetSetupWidget::addBuildInfo(const BuildInfo &info, bool isImport)
store.pathChooser = new Utils::PathChooser();
store.pathChooser->setExpectedKind(Utils::PathChooser::Directory);
- store.pathChooser->setFileName(info.buildDirectory);
+ store.pathChooser->setFilePath(info.buildDirectory);
store.pathChooser->setHistoryCompleter(QLatin1String("TargetSetup.BuildDir.History"));
store.pathChooser->setReadOnly(isImport);
m_newBuildsLayout->addWidget(store.pathChooser, pos * 2, 1);
@@ -302,7 +302,7 @@ void TargetSetupWidget::updateDefaultBuildDirectories()
if (buildInfoStore.buildInfo.typeName == buildInfo.typeName) {
if (!buildInfoStore.customBuildDir) {
m_ignoreChange = true;
- buildInfoStore.pathChooser->setFileName(buildInfo.buildDirectory);
+ buildInfoStore.pathChooser->setFilePath(buildInfo.buildDirectory);
m_ignoreChange = false;
}
found = true;
@@ -344,7 +344,7 @@ void TargetSetupWidget::pathChanged()
return store.pathChooser == pathChooser;
});
QTC_ASSERT(it != m_infoStore.end(), return);
- it->buildInfo.buildDirectory = pathChooser->fileName();
+ it->buildInfo.buildDirectory = pathChooser->filePath();
it->customBuildDir = true;
reportIssues(static_cast<int>(std::distance(m_infoStore.begin(), it)));
}
diff --git a/src/plugins/qbsprojectmanager/qbsbuildstep.cpp b/src/plugins/qbsprojectmanager/qbsbuildstep.cpp
index a8ee28540ce..fb5ca63f918 100644
--- a/src/plugins/qbsprojectmanager/qbsbuildstep.cpp
+++ b/src/plugins/qbsprojectmanager/qbsbuildstep.cpp
@@ -680,7 +680,7 @@ void QbsBuildStepConfigWidget::updateState()
cleanInstallRootCheckBox->setChecked(qbsStep()->cleanInstallRoot());
forceProbesCheckBox->setChecked(qbsStep()->forceProbes());
updatePropertyEdit(qbsStep()->qbsConfiguration(QbsBuildStep::PreserveVariables));
- installDirChooser->setFileName(qbsStep()->installRoot(QbsBuildStep::PreserveVariables));
+ installDirChooser->setFilePath(qbsStep()->installRoot(QbsBuildStep::PreserveVariables));
defaultInstallDirCheckBox->setChecked(!qbsStep()->hasCustomInstallRoot());
}
diff --git a/src/plugins/qbsprojectmanager/qbssettings.cpp b/src/plugins/qbsprojectmanager/qbssettings.cpp
index 3a7b97a98e0..e3200a0ae0f 100644
--- a/src/plugins/qbsprojectmanager/qbssettings.cpp
+++ b/src/plugins/qbsprojectmanager/qbssettings.cpp
@@ -138,7 +138,7 @@ public:
SettingsWidget()
{
m_qbsExePathChooser.setExpectedKind(PathChooser::ExistingCommand);
- m_qbsExePathChooser.setFileName(QbsSettings::qbsExecutableFilePath());
+ m_qbsExePathChooser.setFilePath(QbsSettings::qbsExecutableFilePath());
m_defaultInstallDirLineEdit.setText(QbsSettings::defaultInstallDirTemplate());
m_versionLabel.setText(getQbsVersion());
m_settingsDirCheckBox.setText(tr("Use %1 settings directory for Qbs")
@@ -155,8 +155,8 @@ public:
void apply()
{
QbsSettingsData settings = QbsSettings::rawSettingsData();
- if (m_qbsExePathChooser.fileName() != QbsSettings::qbsExecutableFilePath())
- settings.qbsExecutableFilePath = m_qbsExePathChooser.fileName();
+ if (m_qbsExePathChooser.filePath() != QbsSettings::qbsExecutableFilePath())
+ settings.qbsExecutableFilePath = m_qbsExePathChooser.filePath();
settings.defaultInstallDirTemplate = m_defaultInstallDirLineEdit.text();
settings.useCreatorSettings = m_settingsDirCheckBox.isChecked();
QbsSettings::setSettingsData(settings);
diff --git a/src/plugins/qmakeprojectmanager/addlibrarywizard.cpp b/src/plugins/qmakeprojectmanager/addlibrarywizard.cpp
index 34553567b94..0b758e01bc2 100644
--- a/src/plugins/qmakeprojectmanager/addlibrarywizard.cpp
+++ b/src/plugins/qmakeprojectmanager/addlibrarywizard.cpp
@@ -195,7 +195,7 @@ DetailsPage::DetailsPage(AddLibraryWizard *parent)
const auto pathValidator = [libPathChooser](Utils::FancyLineEdit *edit, QString *errorMessage) {
return libPathChooser->defaultValidationFunction()(edit, errorMessage)
- && validateLibraryPath(libPathChooser->fileName(),
+ && validateLibraryPath(libPathChooser->filePath(),
libPathChooser, errorMessage);
};
libPathChooser->setValidationFunction(pathValidator);
diff --git a/src/plugins/qnx/qnxdebugsupport.cpp b/src/plugins/qnx/qnxdebugsupport.cpp
index 4e0a8646eab..88535782474 100644
--- a/src/plugins/qnx/qnxdebugsupport.cpp
+++ b/src/plugins/qnx/qnxdebugsupport.cpp
@@ -178,7 +178,7 @@ public:
}
QString projectSource() const { return m_projectSource->path(); }
- FilePath localExecutable() const { return m_localExecutable->fileName(); }
+ FilePath localExecutable() const { return m_localExecutable->filePath(); }
private:
PathChooser *m_projectSource;
diff --git a/src/plugins/qnx/qnxtoolchain.cpp b/src/plugins/qnx/qnxtoolchain.cpp
index 533463e8dc7..974fceb56ff 100644
--- a/src/plugins/qnx/qnxtoolchain.cpp
+++ b/src/plugins/qnx/qnxtoolchain.cpp
@@ -235,7 +235,7 @@ QnxToolChainConfigWidget::QnxToolChainConfigWidget(QnxToolChain *tc)
{
m_compilerCommand->setExpectedKind(PathChooser::ExistingCommand);
m_compilerCommand->setHistoryCompleter(QLatin1String("Qnx.ToolChain.History"));
- m_compilerCommand->setFileName(tc->compilerCommand());
+ m_compilerCommand->setFilePath(tc->compilerCommand());
m_compilerCommand->setEnabled(!tc->isAutoDetected());
m_sdpPath->setExpectedKind(PathChooser::ExistingDirectory);
@@ -243,7 +243,7 @@ QnxToolChainConfigWidget::QnxToolChainConfigWidget(QnxToolChain *tc)
m_sdpPath->setPath(tc->sdpPath());
m_sdpPath->setEnabled(!tc->isAutoDetected());
- const Abis abiList = detectTargetAbis(m_sdpPath->fileName());
+ const Abis abiList = detectTargetAbis(m_sdpPath->filePath());
m_abiWidget->setAbis(abiList, tc->targetAbi());
m_abiWidget->setEnabled(!tc->isAutoDetected() && !abiList.isEmpty());
@@ -267,9 +267,9 @@ void QnxToolChainConfigWidget::applyImpl()
Q_ASSERT(tc);
QString displayName = tc->displayName();
tc->setDisplayName(displayName); // reset display name
- tc->setSdpPath(m_sdpPath->fileName().toString());
+ tc->setSdpPath(m_sdpPath->filePath().toString());
tc->setTargetAbi(m_abiWidget->currentAbi());
- tc->resetToolChain(m_compilerCommand->fileName());
+ tc->resetToolChain(m_compilerCommand->filePath());
}
void QnxToolChainConfigWidget::discardImpl()
@@ -277,7 +277,7 @@ void QnxToolChainConfigWidget::discardImpl()
// subwidgets are not yet connected!
QSignalBlocker blocker(this);
auto tc = static_cast<const QnxToolChain *>(toolChain());
- m_compilerCommand->setFileName(tc->compilerCommand());
+ m_compilerCommand->setFilePath(tc->compilerCommand());
m_sdpPath->setPath(tc->sdpPath());
m_abiWidget->setAbis(tc->supportedAbis(), tc->targetAbi());
if (!m_compilerCommand->path().isEmpty())
@@ -288,7 +288,7 @@ bool QnxToolChainConfigWidget::isDirtyImpl() const
{
auto tc = static_cast<const QnxToolChain *>(toolChain());
Q_ASSERT(tc);
- return m_compilerCommand->fileName() != tc->compilerCommand()
+ return m_compilerCommand->filePath() != tc->compilerCommand()
|| m_sdpPath->path() != tc->sdpPath()
|| m_abiWidget->currentAbi() != tc->targetAbi();
}
@@ -297,7 +297,7 @@ void QnxToolChainConfigWidget::handleSdpPathChange()
{
const Abi currentAbi = m_abiWidget->currentAbi();
const bool customAbi = m_abiWidget->isCustomAbi();
- const Abis abiList = detectTargetAbis(m_sdpPath->fileName());
+ const Abis abiList = detectTargetAbis(m_sdpPath->filePath());
m_abiWidget->setEnabled(!abiList.isEmpty());
diff --git a/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp b/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
index e3ffd91e98f..d568caa1f3d 100644
--- a/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
+++ b/src/plugins/remotelinux/genericlinuxdeviceconfigurationwizardpages.cpp
@@ -196,7 +196,7 @@ GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::GenericLinuxDeviceConfig
deployLayout->addStretch();
mainLayout->addLayout(deployLayout);
connect(&d->keyFileChooser, &PathChooser::pathChanged, this, [this, deployButton] {
- deployButton->setEnabled(d->keyFileChooser.fileName().exists());
+ deployButton->setEnabled(d->keyFileChooser.filePath().exists());
d->iconLabel.clear();
emit completeChanged();
});
@@ -227,7 +227,7 @@ void GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::initializePage()
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::isComplete() const
{
- return d->keyFileChooser.path().isEmpty() || d->keyFileChooser.fileName().exists();
+ return d->keyFileChooser.path().isEmpty() || d->keyFileChooser.filePath().exists();
}
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::validatePage()
diff --git a/src/plugins/texteditor/findinfiles.cpp b/src/plugins/texteditor/findinfiles.cpp
index 3acd20f51bb..85073877ac4 100644
--- a/src/plugins/texteditor/findinfiles.cpp
+++ b/src/plugins/texteditor/findinfiles.cpp
@@ -205,7 +205,7 @@ QWidget *FindInFiles::createConfigWidget()
FilePath FindInFiles::path() const
{
- return m_directory->fileName();
+ return m_directory->filePath();
}
void FindInFiles::writeSettings(QSettings *settings)
@@ -224,7 +224,7 @@ void FindInFiles::readSettings(QSettings *settings)
void FindInFiles::setDirectory(const FilePath &directory)
{
- m_directory->setFileName(directory);
+ m_directory->setFilePath(directory);
}
void FindInFiles::setBaseDirectory(const FilePath &directory)
@@ -234,7 +234,7 @@ void FindInFiles::setBaseDirectory(const FilePath &directory)
FilePath FindInFiles::directory() const
{
- return m_directory->fileName();
+ return m_directory->filePath();
}
void FindInFiles::findOnFileSystem(const QString &path)