forked from qt-creator/qt-creator
IWizard and derived classes: Code cleanups
There should be no functional changes, just removal of unnecessary code. This includes: * Removal of unused QObject *parent = 0 parameters to constructors * Removal of unnecessary explicits * Removal of unnecessary virtuals * Removal of unnecessary constructors/destructors Some explicits were added though where those were missing. Change-Id: Iab570349ea950dad0a2d01af17bc6175f70832f1 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -108,10 +108,8 @@ class CORE_EXPORT BaseFileWizard : public IWizard
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
virtual ~BaseFileWizard();
|
||||
|
||||
// IWizard
|
||||
virtual void runWizard(const QString &path, QWidget *parent, const QString &platform, const QVariantMap &extraValues);
|
||||
void runWizard(const QString &path, QWidget *parent, const QString &platform, const QVariantMap &extraValues);
|
||||
|
||||
static QString buildFileName(const QString &path, const QString &baseName, const QString &extension);
|
||||
static void applyExtensionPageShortTitle(Utils::Wizard *wizard, int pageId);
|
||||
@@ -120,8 +118,6 @@ protected:
|
||||
typedef QList<QWizardPage *> WizardPageList;
|
||||
typedef QList<Core::IFileWizardExtension*> ExtensionList;
|
||||
|
||||
explicit BaseFileWizard(QObject *parent = 0);
|
||||
|
||||
virtual ExtensionList selectExtensions();
|
||||
|
||||
virtual QWizard *createWizardDialog(QWidget *parent,
|
||||
@@ -147,9 +143,8 @@ class CORE_EXPORT StandardFileWizard : public BaseFileWizard
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
explicit StandardFileWizard(QObject *parent = 0);
|
||||
virtual QWizard *createWizardDialog(QWidget *parent, const WizardDialogParameters &wizardDialogParameters) const;
|
||||
virtual GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
|
||||
QWizard *createWizardDialog(QWidget *parent, const WizardDialogParameters &wizardDialogParameters) const;
|
||||
GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
|
||||
virtual GeneratedFiles generateFilesFromPath(const QString &path, const QString &name,
|
||||
QString *errorMessage) const = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user