From 0949d09db7a3e9748b7c68998a8c68ebd5fca0be Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 21 Jan 2019 15:47:55 +0100 Subject: [PATCH] Fix XML-based wizards We returned bogus values for everything provided via combo boxes and check boxes due to 3e8e82b2e3. Task-number: QTCREATORBUG-18670 Change-Id: I1b8e507ee089b99e6172b6382aceefc036da5d9e Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/customwizard/customwizardpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/customwizard/customwizardpage.cpp b/src/plugins/projectexplorer/customwizard/customwizardpage.cpp index 2f5f9923f68..a17a242c736 100644 --- a/src/plugins/projectexplorer/customwizard/customwizardpage.cpp +++ b/src/plugins/projectexplorer/customwizard/customwizardpage.cpp @@ -207,7 +207,7 @@ QWidget *CustomWizardFieldPage::registerComboBox(const QString &fieldName, break; combo->setCurrentIndex(currentIndex); } while (false); - registerField(fieldName, combo, "text", SIGNAL(text4Changed(QString))); + registerField(fieldName, combo, "indexText", SIGNAL(text4Changed(QString))); // Connect to completeChanged() for derived classes that reimplement isComplete() connect(combo, &TextFieldComboBox::text4Changed, this, &QWizardPage::completeChanged); return combo; @@ -271,7 +271,7 @@ QWidget *CustomWizardFieldPage::registerCheckBox(const QString &fieldName, const AttributeMapConstIt falseTextIt = field.controlAttributes.constFind(QLatin1String("falsevalue")); if (falseTextIt != field.controlAttributes.constEnd()) // Also set empty texts checkBox->setFalseText(falseTextIt.value()); - registerField(fieldName, checkBox, "text", SIGNAL(textChanged(QString))); + registerField(fieldName, checkBox, "compareText", SIGNAL(textChanged(QString))); // Connect to completeChanged() for derived classes that reimplement isComplete() connect(checkBox, &TextFieldCheckBox::textChanged, this, &QWizardPage::completeChanged); return checkBox;