diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-02 17:38:42 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-26 11:42:03 +0200 |
commit | a8e8910130ecb59a40e38e3dbca712bb6f8db15f (patch) | |
tree | 37988f031c58eae079a336b7a9272ac927d6fed5 /src/plugins/glsleditor/glsleditorplugin.cpp | |
parent | ca41557613d02026113e52703984625b88687023 (diff) |
IWizard->IWizardFactory
Start at splitting up the wizard functionality a bit. Currently
it is a factory but also contains a lot of logic that is invoked by
the real wizard dialogs.
This change renames/moves a couple of things only.
Change-Id: I1fa114ee3ee262f7c0690841f361bbf09e674725
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/glsleditor/glsleditorplugin.cpp')
-rw-r--r-- | src/plugins/glsleditor/glsleditorplugin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp index 815689cb513..9b79c19ae19 100644 --- a/src/plugins/glsleditor/glsleditorplugin.cpp +++ b/src/plugins/glsleditor/glsleditorplugin.cpp @@ -167,8 +167,8 @@ bool GLSLEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er FileIconProvider::registerIconOverlayForMimeType(":/glsleditor/images/glslfile.png", Constants::GLSL_MIMETYPE_VERT_ES); FileIconProvider::registerIconOverlayForMimeType(":/glsleditor/images/glslfile.png", Constants::GLSL_MIMETYPE_FRAG_ES); - IWizard *wizard = new GLSLFileWizard(GLSLFileWizard::FragmentShaderES); - wizard->setWizardKind(IWizard::FileWizard); + IWizardFactory *wizard = new GLSLFileWizard(GLSLFileWizard::FragmentShaderES); + wizard->setWizardKind(IWizardFactory::FileWizard); wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL)); wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL)); wizard->setDescription @@ -181,7 +181,7 @@ bool GLSLEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er addAutoReleasedObject(wizard); wizard = new GLSLFileWizard(GLSLFileWizard::VertexShaderES); - wizard->setWizardKind(IWizard::FileWizard); + wizard->setWizardKind(IWizardFactory::FileWizard); wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL)); wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL)); wizard->setDescription @@ -194,7 +194,7 @@ bool GLSLEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er addAutoReleasedObject(wizard); wizard = new GLSLFileWizard(GLSLFileWizard::FragmentShaderDesktop); - wizard->setWizardKind(IWizard::FileWizard); + wizard->setWizardKind(IWizardFactory::FileWizard); wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL)); wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL)); wizard->setDescription @@ -207,7 +207,7 @@ bool GLSLEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er addAutoReleasedObject(wizard); wizard = new GLSLFileWizard(GLSLFileWizard::VertexShaderDesktop); - wizard->setWizardKind(IWizard::FileWizard); + wizard->setWizardKind(IWizardFactory::FileWizard); wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL)); wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL)); wizard->setDescription |