diff --git a/src/libs/utils/textfieldcheckbox.h b/src/libs/utils/textfieldcheckbox.h index 9bcc17c9ad6..ad585255efc 100644 --- a/src/libs/utils/textfieldcheckbox.h +++ b/src/libs/utils/textfieldcheckbox.h @@ -33,7 +33,7 @@ namespace Utils { // Documentation inside. class QTCREATOR_UTILS_EXPORT TextFieldCheckBox : public QCheckBox { - Q_PROPERTY(QString text READ text WRITE setText) + Q_PROPERTY(QString compareText READ text WRITE setText) Q_PROPERTY(QString trueText READ trueText WRITE setTrueText) Q_PROPERTY(QString falseText READ falseText WRITE setFalseText) Q_OBJECT diff --git a/src/libs/utils/textfieldcombobox.h b/src/libs/utils/textfieldcombobox.h index 136b85de3c7..937a290cad2 100644 --- a/src/libs/utils/textfieldcombobox.h +++ b/src/libs/utils/textfieldcombobox.h @@ -33,7 +33,7 @@ namespace Utils { // Documentation inside. class QTCREATOR_UTILS_EXPORT TextFieldComboBox : public QComboBox { - Q_PROPERTY(QString text READ text WRITE setText) + Q_PROPERTY(QString indexText READ text WRITE setText) Q_OBJECT public: explicit TextFieldComboBox(QWidget *parent = 0); diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp index fe49ff41292..250555386d1 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp @@ -689,7 +689,7 @@ void CheckBoxField::setup(JsonFieldPage *page, const QString &name) auto w = static_cast(widget()); QObject::connect(w, &TextFieldCheckBox::clicked, page, [this, page]() { m_isModified = true; page->completeChanged();}); - page->registerFieldWithName(name, w, "text", SIGNAL(textChanged(QString))); + page->registerFieldWithName(name, w, "compareText", SIGNAL(textChanged(QString))); } bool CheckBoxField::validate(MacroExpander *expander, QString *message) @@ -822,7 +822,7 @@ QWidget *ComboBoxField::createWidget(const QString &displayName, JsonFieldPage * void ComboBoxField::setup(JsonFieldPage *page, const QString &name) { auto w = static_cast(widget()); - page->registerFieldWithName(name, w, "text", SIGNAL(text4Changed(QString))); + page->registerFieldWithName(name, w, "indexText", SIGNAL(text4Changed(QString))); QObject::connect(w, &TextFieldComboBox::text4Changed, page, [page](QString) { page->completeChanged(); }); }