diff options
author | hjk <hjk121@nokiamail.com> | 2013-09-20 15:12:44 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-09-24 09:57:32 +0200 |
commit | 49d0789e641e118dd412d3094e1f121f6ddfcb86 (patch) | |
tree | 8c19f6d76670e4c097edc44338b2b9813ebb0cb9 /src/plugins/resourceeditor | |
parent | aa32c2be87f7192e03f06b8b5223100354e269a6 (diff) |
Cleanup IWizard interface and users
Added 639 lines, removed 1391.
Change-Id: I15ec7dd056d4f7ad79c6dd6a4181007ad14f6a43
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorplugin.cpp | 15 | ||||
-rw-r--r-- | src/plugins/resourceeditor/resourcewizard.cpp | 4 | ||||
-rw-r--r-- | src/plugins/resourceeditor/resourcewizard.h | 3 |
3 files changed, 10 insertions, 12 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index 7996b1c827..4fd92ebeb8 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -73,14 +73,13 @@ bool ResourceEditorPlugin::initialize(const QStringList &arguments, QString *err m_editor = new ResourceEditorFactory(this); addObject(m_editor); - Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard); - wizardParameters.setDescription(tr("Creates a Qt Resource file (.qrc) that you can add to a Qt Widget Project.")); - wizardParameters.setDisplayName(tr("Qt Resource file")); - wizardParameters.setId(QLatin1String("F.Resource")); - wizardParameters.setCategory(QLatin1String(Core::Constants::WIZARD_CATEGORY_QT)); - wizardParameters.setDisplayCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT)); - - m_wizard = new ResourceWizard(wizardParameters, this); + m_wizard = new ResourceWizard(this); + m_wizard->setDescription(tr("Creates a Qt Resource file (.qrc) that you can add to a Qt Widget Project.")); + m_wizard->setDisplayName(tr("Qt Resource file")); + m_wizard->setId(QLatin1String("F.Resource")); + m_wizard->setCategory(QLatin1String(Core::Constants::WIZARD_CATEGORY_QT)); + m_wizard->setDisplayCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT)); + addObject(m_wizard); errorMessage->clear(); diff --git a/src/plugins/resourceeditor/resourcewizard.cpp b/src/plugins/resourceeditor/resourcewizard.cpp index 6a08ccb855..f471dc46ac 100644 --- a/src/plugins/resourceeditor/resourcewizard.cpp +++ b/src/plugins/resourceeditor/resourcewizard.cpp @@ -34,8 +34,8 @@ using namespace ResourceEditor; using namespace ResourceEditor::Internal; -ResourceWizard::ResourceWizard(const BaseFileWizardParameters ¶meters, QObject *parent) - : Core::StandardFileWizard(parameters, parent) +ResourceWizard::ResourceWizard(QObject *parent) + : Core::StandardFileWizard(parent) { } diff --git a/src/plugins/resourceeditor/resourcewizard.h b/src/plugins/resourceeditor/resourcewizard.h index 9f79611f54..af5e33f11c 100644 --- a/src/plugins/resourceeditor/resourcewizard.h +++ b/src/plugins/resourceeditor/resourcewizard.h @@ -40,8 +40,7 @@ class ResourceWizard : public Core::StandardFileWizard Q_OBJECT public: - typedef Core::BaseFileWizardParameters BaseFileWizardParameters; - explicit ResourceWizard(const BaseFileWizardParameters ¶meters, QObject *parent); + explicit ResourceWizard(QObject *parent); protected: virtual Core::GeneratedFiles |