From 1567d2498034a492fa72b1fd660b41f46d165408 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 2 Sep 2022 11:49:36 +0200 Subject: Utils: Replace PathChooser::{fileP,p}athChanged signals ... by a new PathChooser::textChanged signal. They were both emitted in reaction to the underlying line edit's textChanged() signal. Use 'textChanged()' as name to mimic/match the Qt side. This also makes it more clear on the user code side, when this happens. Some textChanged() consumers should probably use editingFinished() instead, but that's left for later changes. Change-Id: Ib07347f616cbf1c5d09bc2f8671ca860d185d1f9 Reviewed-by: Eike Ziller Reviewed-by: Christian Stenger --- src/plugins/coreplugin/plugininstallwizard.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/coreplugin/plugininstallwizard.cpp') diff --git a/src/plugins/coreplugin/plugininstallwizard.cpp b/src/plugins/coreplugin/plugininstallwizard.cpp index 3c04930edf..a0aeb38799 100644 --- a/src/plugins/coreplugin/plugininstallwizard.cpp +++ b/src/plugins/coreplugin/plugininstallwizard.cpp @@ -89,11 +89,11 @@ public: label->setWordWrap(true); vlayout->addWidget(label); - auto path = new PathChooser; - path->setExpectedKind(PathChooser::Any); - vlayout->addWidget(path); - connect(path, &PathChooser::pathChanged, this, [this, path] { - m_data->sourcePath = path->filePath(); + auto chooser = new PathChooser; + chooser->setExpectedKind(PathChooser::Any); + vlayout->addWidget(chooser); + connect(chooser, &PathChooser::textChanged, this, [this, chooser] { + m_data->sourcePath = chooser->filePath(); updateWarnings(); }); -- cgit v1.2.1