diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2014-10-10 10:21:56 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2014-10-16 12:06:14 +0200 |
commit | 37f9cabf2de13231b007a04bae67a8ff8c3d2d2f (patch) | |
tree | 375dcf5f707d2c0093fc999c40af76e3f47ed0e7 /src/plugins/designer/formtemplatewizardpage.h | |
parent | 869c7770d53a61a0d7e14c2f6be6f88827b1d65b (diff) | |
download | qt-creator-37f9cabf2de13231b007a04bae67a8ff8c3d2d2f.tar.gz |
JsonWizard: Make the form page available to the JsonWizard
Change-Id: I86d8a199b1c3ed973b32335d14a9cd7e0d23fdbf
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/designer/formtemplatewizardpage.h')
-rw-r--r-- | src/plugins/designer/formtemplatewizardpage.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/plugins/designer/formtemplatewizardpage.h b/src/plugins/designer/formtemplatewizardpage.h index 433f970ad4..caaa5bc757 100644 --- a/src/plugins/designer/formtemplatewizardpage.h +++ b/src/plugins/designer/formtemplatewizardpage.h @@ -31,7 +31,9 @@ #ifndef FORMTEMPLATEWIZARDPAGE_H #define FORMTEMPLATEWIZARDPAGE_H -#include <QWizardPage> +#include <projectexplorer/jsonwizard/jsonwizardpagefactory.h> + +#include <utils/wizardpage.h> QT_BEGIN_NAMESPACE class QDesignerNewFormWidgetInterface; @@ -40,10 +42,22 @@ QT_END_NAMESPACE namespace Designer { namespace Internal { +class FormPageFactory : public ProjectExplorer::JsonWizardPageFactory +{ +public: + FormPageFactory(); + + Utils::WizardPage *create(ProjectExplorer::JsonWizard *wizard, Core::Id typeId, const QVariant &data); + + bool validateData(Core::Id typeId, const QVariant &data, QString *errorMessage); +}; + // A wizard page embedding Qt Designer's QDesignerNewFormWidgetInterface // widget. -class FormTemplateWizardPage : public QWizardPage +// Sets FormContents property. + +class FormTemplateWizardPage : public Utils::WizardPage { Q_OBJECT |