forked from qt-creator/qt-creator
Utils: Drop deprecated Utils::FilePath::{setFilePath,filePath}
Change-Id: I730dfb716f744bbcb62dedf611e93c0d2d358247 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -153,8 +153,6 @@ public:
|
||||
|
||||
// Deprecated. Use filePath().toString() or better suitable conversions.
|
||||
QString path() const { return filePath().toString(); }
|
||||
// Deprecated. Use filePath()
|
||||
FilePath fileName() const { return filePath(); }
|
||||
|
||||
// this sets the placeHolderText to defaultValue and enables to use this as
|
||||
// input value during validation if the real value is empty
|
||||
@@ -179,8 +177,6 @@ signals:
|
||||
|
||||
public slots:
|
||||
void setPath(const QString &);
|
||||
// Deprecated: Use setFilePath()
|
||||
void setFileName(const FilePath &path) { setFilePath(path); }
|
||||
void setFilePath(const FilePath &);
|
||||
|
||||
private:
|
||||
|
@@ -600,7 +600,7 @@ void AndroidSettingsWidget::onSdkPathChanged()
|
||||
FilePath currentOpenSslPath = m_androidConfig.openSslLocation();
|
||||
if (currentOpenSslPath.isEmpty() || !currentOpenSslPath.exists())
|
||||
currentOpenSslPath = sdkPath.pathAppended("android_openssl");
|
||||
m_ui.openSslPathChooser->setFileName(currentOpenSslPath);
|
||||
m_ui.openSslPathChooser->setFilePath(currentOpenSslPath);
|
||||
// Package reload will trigger validateSdk.
|
||||
m_sdkManager.reloadPackages();
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ CvsSettingsPageWidget::CvsSettingsPageWidget(const std::function<void()> &onAppl
|
||||
m_ui.commandPathChooser->setPromptDialogTitle(tr("CVS Command"));
|
||||
|
||||
const VcsBaseClientSettings &s = *settings;
|
||||
m_ui.commandPathChooser->setFileName(s.binaryPath());
|
||||
m_ui.commandPathChooser->setFilePath(s.binaryPath());
|
||||
m_ui.rootLineEdit->setText(s.stringValue(CvsSettings::cvsRootKey));
|
||||
m_ui.diffOptionsLineEdit->setText(s.stringValue(CvsSettings::diffOptionsKey));
|
||||
m_ui.timeOutSpinBox->setValue(s.intValue(CvsSettings::timeoutKey));
|
||||
|
@@ -57,7 +57,7 @@ void ToolItemSettings::load(ToolTreeItem *item)
|
||||
ui->mesonNameLineEdit->setDisabled(item->isAutoDetected());
|
||||
ui->mesonNameLineEdit->setText(item->name());
|
||||
ui->mesonPathChooser->setDisabled(item->isAutoDetected());
|
||||
ui->mesonPathChooser->setFileName(item->executable());
|
||||
ui->mesonPathChooser->setFilePath(item->executable());
|
||||
m_currentId = item->id();
|
||||
} else {
|
||||
m_currentId = Utils::nullopt;
|
||||
|
@@ -80,7 +80,7 @@ AssetExportDialog::AssetExportDialog(const Utils::FilePath &exportPath,
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
m_ui->exportPath->setFileName(exportPath);
|
||||
m_ui->exportPath->setFilePath(exportPath);
|
||||
m_ui->exportPath->setPromptDialogTitle(tr("Choose Export Path"));
|
||||
m_ui->exportPath->lineEdit()->setReadOnly(true);
|
||||
m_ui->exportPath->addButton(tr("Open"), this, [this]() {
|
||||
@@ -153,7 +153,7 @@ void AssetExportDialog::onExport()
|
||||
TaskHub::clearTasks(Constants::TASK_CATEGORY_ASSET_EXPORT);
|
||||
m_exportLogs->clear();
|
||||
|
||||
m_assetExporter.exportQml(m_filePathModel.files(), m_ui->exportPath->fileName(),
|
||||
m_assetExporter.exportQml(m_filePathModel.files(), m_ui->exportPath->filePath(),
|
||||
m_exportAssetsCheck->isChecked(),
|
||||
m_perComponentExportCheck->isChecked());
|
||||
}
|
||||
|
@@ -69,7 +69,7 @@ SubversionSettingsPageWidget::SubversionSettingsPageWidget(const std::function<v
|
||||
m_ui.pathChooser->setPromptDialogTitle(tr("Subversion Command"));
|
||||
|
||||
SubversionSettings &s = *m_settings;
|
||||
m_ui.pathChooser->setFileName(s.binaryPath());
|
||||
m_ui.pathChooser->setFilePath(s.binaryPath());
|
||||
m_ui.usernameLineEdit->setText(s.stringValue(SubversionSettings::userKey));
|
||||
m_ui.passwordLineEdit->setText(s.stringValue(SubversionSettings::passwordKey));
|
||||
m_ui.userGroupBox->setChecked(s.boolValue(SubversionSettings::useAuthenticationKey));
|
||||
|
Reference in New Issue
Block a user