aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/projectintropage.cpp
diff options
context:
space:
mode:
authorSamuel Ghinet <[email protected]>2021-09-27 20:21:50 +0300
committerSamuel Ghinet <[email protected]>2021-09-30 09:41:04 +0000
commit32799b3a7bd0cb8cd3da99c869649dab3be83634 (patch)
treeac29ac0b4acc509d784420d2c11a8a48519e6cc0 /src/libs/utils/projectintropage.cpp
parent04d49fb77179a554a692a930c32afed815dd9f21 (diff)
Make additional changes in the QtCreator side required for QDS new project dialog
* We need to use the CheckBox field to set the checked state of fields (TargetQtVersion, Use as default project location). * When the validation of the Project Name or Project Location fails, we need a way to be notified of what went wrong. We also need a way to force the project intro page to execute the validation of those fields whenever we need (i.e. when the user types into our QML TextField controls) Also, add a warning on loading wizards: whenever a wizard.json file cannot be parsed, we should issue a qWarning(), so that we can more easily notice when something went wrong. Task-number: QDS-4490 Change-Id: I7cfa61b4e43d731db9d0679e093e723d947b60c0 Reviewed-by: Alessandro Portale <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'src/libs/utils/projectintropage.cpp')
-rw-r--r--src/libs/utils/projectintropage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp
index 1a318df0d4c..6e180496375 100644
--- a/src/libs/utils/projectintropage.cpp
+++ b/src/libs/utils/projectintropage.cpp
@@ -195,6 +195,11 @@ bool ProjectIntroPage::validate()
return false;
}
+void ProjectIntroPage::fieldsUpdated()
+{
+ slotChanged();
+}
+
void ProjectIntroPage::slotChanged()
{
const bool newComplete = validate();
@@ -286,6 +291,8 @@ void ProjectIntroPage::displayStatusMessage(InfoLabel::InfoType t, const QString
{
d->m_ui.stateLabel->setType(t);
d->m_ui.stateLabel->setText(s);
+
+ emit statusMessageChanged(t, s);
}
void ProjectIntroPage::hideStatusLabel()