ProjectExplorer: Replace some uses of PathChoosers::pathChanged

Change-Id: I3b0cc4218d1b0222f49bf98bbff206a38fa0b571
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2022-06-29 16:21:03 +02:00
parent 84a3529846
commit e2c8866f2a
3 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ void SshSettingsWidget::setupPathChooser(PathChooser &chooser, const FilePath &i
{ {
chooser.setExpectedKind(PathChooser::ExistingCommand); chooser.setExpectedKind(PathChooser::ExistingCommand);
chooser.setFilePath(initialPath); chooser.setFilePath(initialPath);
connect(&chooser, &PathChooser::pathChanged, [&changedFlag] { changedFlag = true; }); connect(&chooser, &PathChooser::filePathChanged, [&changedFlag] { changedFlag = true; });
} }
void SshSettingsWidget::updateCheckboxEnabled() void SshSettingsWidget::updateCheckboxEnabled()

View File

@@ -856,7 +856,7 @@ QWidget *PathChooserField::createWidget(const QString &displayName, JsonFieldPag
auto w = new PathChooser; auto w = new PathChooser;
if (!m_historyId.isEmpty()) if (!m_historyId.isEmpty())
w->setHistoryCompleter(m_historyId); w->setHistoryCompleter(m_historyId);
QObject::connect(w, &PathChooser::pathChanged, [this, w] { QObject::connect(w, &PathChooser::filePathChanged, [this, w] {
if (w->filePath() != m_path) if (w->filePath() != m_path)
setHasUserChanges(); setHasUserChanges();
}); });

View File

@@ -80,7 +80,7 @@ public:
m_chooser->setExpectedKind(Utils::PathChooser::ExistingDirectory); m_chooser->setExpectedKind(Utils::PathChooser::ExistingDirectory);
m_chooser->setHistoryCompleter(QLatin1String("PE.SysRoot.History")); m_chooser->setHistoryCompleter(QLatin1String("PE.SysRoot.History"));
m_chooser->setFilePath(SysRootKitAspect::sysRoot(k)); m_chooser->setFilePath(SysRootKitAspect::sysRoot(k));
connect(m_chooser, &Utils::PathChooser::pathChanged, connect(m_chooser, &PathChooser::filePathChanged,
this, &SysRootKitAspectWidget::pathWasChanged); this, &SysRootKitAspectWidget::pathWasChanged);
} }