forked from qt-creator/qt-creator
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:
@@ -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()
|
||||||
|
|||||||
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user