forked from qt-creator/qt-creator
Wizards: splitting QtQuickAppWizard
QtQuickAppWizard currently has a combobox representing the choice of Qt Quick Components + the option to import .qml. After this patch instead of deciding this inside the wizard the decicion is made by choosing one of 4 instances of QtQuickAppWizard. Change-Id: If2f295b1dfc760d195dee83c59794104935016ce Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
|
||||
#include <coreplugin/dialogs/iwizard.h>
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
#include <QtCore/QSharedDataPointer>
|
||||
#include <QtCore/QList>
|
||||
|
||||
@@ -204,6 +206,18 @@ protected:
|
||||
QString *errorMessage) const = 0;
|
||||
};
|
||||
|
||||
template <class WizardClass>
|
||||
QList<WizardClass*> createMultipleBaseFileWizardInstances(const QList<BaseFileWizardParameters> ¶metersList, ExtensionSystem::IPlugin *plugin)
|
||||
{
|
||||
QList<WizardClass*> list;
|
||||
foreach (const BaseFileWizardParameters ¶meters, parametersList) {
|
||||
WizardClass *wc = new WizardClass(parameters, 0);
|
||||
plugin->addAutoReleasedObject(wc);
|
||||
list << wc;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(Core::GeneratedFile::Attributes)
|
||||
|
||||
Reference in New Issue
Block a user