Wizards: Provide mechanism to skip pages

Our wizard infrastructure makes it hard to dynamically remove
or add wizard pages on the fly while using the wizard.
So, instead of removing pages and re-adding them on need
just provide a way to skip pages.
Skipping pages is provided with this patch limited to
wizards which are known to be sub projects.
For now this is just a preparation as no wizard actively
sets the property for being a sub project or makes use
of this mechanism.

Change-Id: I3efd079ccb5be2203d2b17b3765d9f178998d5f4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2024-05-29 12:08:04 +02:00
parent 9bdf8329a0
commit fcadc9a2b2
3 changed files with 35 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ public:
void showVariables();
// allows to skip pages
void setSkipForSubprojects(bool skip);
int nextId() const override;
protected:
virtual QString stringify(const QVariant &v) const;
virtual QString evaluate(const QVariant &v) const;