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/pythoneditor/wizard/pythonclasswizard.cpp | |
parent | aa32c2be87f7192e03f06b8b5223100354e269a6 (diff) | |
download | qt-creator-49d0789e641e118dd412d3094e1f121f6ddfcb86.tar.gz |
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/pythoneditor/wizard/pythonclasswizard.cpp')
-rw-r--r-- | src/plugins/pythoneditor/wizard/pythonclasswizard.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/plugins/pythoneditor/wizard/pythonclasswizard.cpp b/src/plugins/pythoneditor/wizard/pythonclasswizard.cpp index ca9619b660..c3c3cb29b5 100644 --- a/src/plugins/pythoneditor/wizard/pythonclasswizard.cpp +++ b/src/plugins/pythoneditor/wizard/pythonclasswizard.cpp @@ -45,22 +45,14 @@ using namespace ProjectExplorer; namespace PythonEditor { namespace Internal { -static Core::BaseFileWizardParameters getDefaultParams() -{ - Core::BaseFileWizardParameters p(Core::IWizard::FileWizard); - - p.setId(QLatin1String(Constants::C_PY_CLASS_WIZARD_ID)); - p.setCategory(QLatin1String(Constants::C_PY_WIZARD_CATEGORY)); - p.setDisplayCategory(QLatin1String(Constants::C_PY_DISPLAY_CATEGORY)); - p.setDisplayName(ClassWizard::tr(Constants::EN_PY_CLASS_DISPLAY_NAME)); - p.setDescription(ClassWizard::tr(Constants::EN_PY_CLASS_DESCRIPTION)); - - return p; -} - -ClassWizard::ClassWizard(QObject *parent) : - Core::BaseFileWizard(getDefaultParams(), parent) +ClassWizard::ClassWizard() { + setWizardKind(Core::IWizard::FileWizard); + setId(QLatin1String(Constants::C_PY_CLASS_WIZARD_ID)); + setCategory(QLatin1String(Constants::C_PY_WIZARD_CATEGORY)); + setDisplayCategory(QLatin1String(Constants::C_PY_DISPLAY_CATEGORY)); + setDisplayName(ClassWizard::tr(Constants::EN_PY_CLASS_DISPLAY_NAME)); + setDescription(ClassWizard::tr(Constants::EN_PY_CLASS_DESCRIPTION)); } QWizard *ClassWizard::createWizardDialog( |