summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-05-25 15:27:59 +0200
committerChristian Stenger <christian.stenger@qt.io>2020-05-28 05:03:59 +0000
commit839e7760122dd0581fd39e5c75aeb3e74314ff8a (patch)
treebdb0d8273df03d17d42bdf9d14aaec33f2d3f4a0
parentd4a1f1ae90ce902e816e5cd0c04e62ded6bf4fdd (diff)
downloadqt-creator-839e7760122dd0581fd39e5c75aeb3e74314ff8a.tar.gz
PE: JsonWizard: Improve handling of check boxes
Only handle active user clicks as 'modified' to be able to react on (un)setting values by expressions that depend on other fields. Improves the check box handling on the "Add C++ Class" and "Add Python Class" wizards as it re-evaluates the check box state based on an expression as long the user does not actively checks the respective check box. Change-Id: I739c02b85196555c0379272005ca3b0095f7c762 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
index 6a7ecbbcd6..acdbf4dcb6 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
@@ -840,7 +840,7 @@ void CheckBoxField::setup(JsonFieldPage *page, const QString &name)
return page->expander()->expand(m_uncheckedValue);
});
- QObject::connect(w, &QCheckBox::stateChanged, page, [this, page]() {
+ QObject::connect(w, &QCheckBox::clicked, page, [this, page]() {
m_isModified = true;
setHasUserChanges();
emit page->completeChanged();