ProjectExplorer: Let JsonWizard react on PathChooser::textChanged

The other code path to trigger rawPathChanged is not relevant here.
Helps in a follow-up change.

Change-Id: Ifa70a763d8b3c82484b3c4e3c62d91ba2ca8e998
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2022-09-02 14:29:56 +02:00
parent 87df45dde7
commit 10e8a21630

View File

@@ -852,9 +852,8 @@ void PathChooserField::setup(JsonFieldPage *page, const QString &name)
{ {
auto w = qobject_cast<PathChooser *>(widget()); auto w = qobject_cast<PathChooser *>(widget());
QTC_ASSERT(w, return); QTC_ASSERT(w, return);
page->registerFieldWithName(name, w, "path", SIGNAL(rawPathChanged(QString))); page->registerFieldWithName(name, w, "path", SIGNAL(textChanged(QString)));
QObject::connect(w, &PathChooser::rawPathChanged, QObject::connect(w, &PathChooser::textChanged, page, &WizardPage::completeChanged);
page, [page](QString) { emit page->completeChanged(); });
} }
bool PathChooserField::validate(MacroExpander *expander, QString *message) bool PathChooserField::validate(MacroExpander *expander, QString *message)