Replace a few PathChooser::setPath by setFilePath

Change-Id: I4120aa2fe9584334e7c19ca15a647027e496008e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2021-09-30 16:46:42 +02:00
parent 6842745a68
commit 9def0165ac
3 changed files with 3 additions and 3 deletions

View File

@@ -1181,7 +1181,7 @@ void StringAspect::setVolatileValue(const QVariant &val)
switch (d->m_displayStyle) {
case PathChooserDisplay:
if (d->m_pathChooserDisplay)
d->m_pathChooserDisplay->setPath(val.toString());
d->m_pathChooserDisplay->setFilePath(FilePath::fromVariant(val));
break;
case LineEditDisplay:
if (d->m_lineEditDisplay)

View File

@@ -123,7 +123,7 @@ void DeviceSelectorDetailsPanel::refresh()
m_memoryView->refresh();
m_algorithmView->refresh();
m_algorithmView->setAlgorithm(m_selection.algorithmIndex);
m_peripheralDescriptionFileChooser->setPath(m_selection.svd);
m_peripheralDescriptionFileChooser->setFilePath(Utils::FilePath::fromString(m_selection.svd));
}
// DeviceSelector

View File

@@ -67,7 +67,7 @@ SettingsPageWidget::SettingsPageWidget()
const ClearCaseSettings &s = ClearCasePlugin::settings();
m_ui.commandPathChooser->setPath(s.ccCommand);
m_ui.commandPathChooser->setFilePath(FilePath::fromString(s.ccCommand));
m_ui.timeOutSpinBox->setValue(s.timeOutS);
m_ui.autoCheckOutCheckBox->setChecked(s.autoCheckOut);
m_ui.noCommentCheckBox->setChecked(s.noComment);