From 49d0789e641e118dd412d3094e1f121f6ddfcb86 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 20 Sep 2013 15:12:44 +0200 Subject: Cleanup IWizard interface and users Added 639 lines, removed 1391. Change-Id: I15ec7dd056d4f7ad79c6dd6a4181007ad14f6a43 Reviewed-by: Tobias Hunger --- .../pythoneditor/wizard/pythonclasswizard.cpp | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'src/plugins/pythoneditor/wizard/pythonclasswizard.cpp') 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( -- cgit v1.2.1