Commit 55f62546 authored by Tobias Hunger's avatar Tobias Hunger

Introduce BaseFileWizard

Introduce BaseFileWizard and derive all File Wizards from that.

Change BaseFileWizardFactory::create(...) to return a BaseFileWizard.

Change-Id: Ic0cb9e9d0390045dab57cd1a75a0f839c1f90216
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 5b5bea0c
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
#include "basefilewizard.h"
Core::BaseFileWizard::BaseFileWizard(QWidget *parent) :
Utils::FileWizardDialog(parent)
{ }
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
#ifndef BASEFILEWIZARD_H
#define BASEFILEWIZARD_H
#include "core_global.h"
#include <utils/filewizarddialog.h>
namespace Core {
class CORE_EXPORT BaseFileWizard : public Utils::FileWizardDialog
{
Q_OBJECT
public:
explicit BaseFileWizard(QWidget *parent = 0);
};
} // namespace Core
#endif // BASEFILEWIZARD_H
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
****************************************************************************/ ****************************************************************************/
#include "basefilewizardfactory.h" #include "basefilewizardfactory.h"
#include "basefilewizard.h"
#include "icore.h" #include "icore.h"
#include "ifilewizardextension.h" #include "ifilewizardextension.h"
#include "mimedatabase.h" #include "mimedatabase.h"
...@@ -524,16 +526,16 @@ QString BaseFileWizardFactory::preferredSuffix(const QString &mimeType) ...@@ -524,16 +526,16 @@ QString BaseFileWizardFactory::preferredSuffix(const QString &mimeType)
Creates a Utils::FileWizardDialog. Creates a Utils::FileWizardDialog.
*/ */
QWizard *StandardFileWizardFactory::create(QWidget *parent, const WizardDialogParameters &parameters) const BaseFileWizard *StandardFileWizardFactory::create(QWidget *parent, const WizardDialogParameters &parameters) const
{ {
Utils::FileWizardDialog *standardWizardDialog = new Utils::FileWizardDialog(parent); BaseFileWizard *wizard = new BaseFileWizard(parent);
if (parameters.flags().testFlag(WizardDialogParameters::ForceCapitalLetterForFileName)) if (parameters.flags().testFlag(WizardDialogParameters::ForceCapitalLetterForFileName))
standardWizardDialog->setForceFirstCapitalLetterForFileName(true); wizard->setForceFirstCapitalLetterForFileName(true);
standardWizardDialog->setWindowTitle(tr("New %1").arg(displayName())); wizard->setWindowTitle(tr("New %1").arg(displayName()));
standardWizardDialog->setPath(parameters.defaultPath()); wizard->setPath(parameters.defaultPath());
foreach (QWizardPage *p, parameters.extensionPages()) foreach (QWizardPage *p, parameters.extensionPages())
BaseFileWizardFactory::applyExtensionPageShortTitle(standardWizardDialog, standardWizardDialog->addPage(p)); BaseFileWizardFactory::applyExtensionPageShortTitle(wizard, wizard->addPage(p));
return standardWizardDialog; return wizard;
} }
/*! /*!
......
...@@ -52,6 +52,7 @@ namespace Utils { class Wizard; } ...@@ -52,6 +52,7 @@ namespace Utils { class Wizard; }
namespace Core { namespace Core {
class BaseFileWizard;
class IFileWizardExtension; class IFileWizardExtension;
class CORE_EXPORT WizardDialogParameters class CORE_EXPORT WizardDialogParameters
...@@ -120,7 +121,7 @@ protected: ...@@ -120,7 +121,7 @@ protected:
virtual ExtensionList extensions() const; virtual ExtensionList extensions() const;
virtual QWizard *create(QWidget *parent, const WizardDialogParameters &parameters) const = 0; virtual BaseFileWizard *create(QWidget *parent, const WizardDialogParameters &parameters) const = 0;
virtual GeneratedFiles generateFiles(const QWizard *w, virtual GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const = 0; QString *errorMessage) const = 0;
...@@ -142,7 +143,7 @@ class CORE_EXPORT StandardFileWizardFactory : public BaseFileWizardFactory ...@@ -142,7 +143,7 @@ class CORE_EXPORT StandardFileWizardFactory : public BaseFileWizardFactory
Q_OBJECT Q_OBJECT
protected: protected:
QWizard *create(QWidget *parent, const WizardDialogParameters &parameters) const; BaseFileWizard *create(QWidget *parent, const WizardDialogParameters &parameters) const;
GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const; GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
virtual GeneratedFiles generateFilesFromPath(const QString &path, const QString &name, virtual GeneratedFiles generateFilesFromPath(const QString &path, const QString &name,
QString *errorMessage) const = 0; QString *errorMessage) const = 0;
......
...@@ -55,6 +55,7 @@ SOURCES += mainwindow.cpp \ ...@@ -55,6 +55,7 @@ SOURCES += mainwindow.cpp \
coreplugin.cpp \ coreplugin.cpp \
variablemanager.cpp \ variablemanager.cpp \
modemanager.cpp \ modemanager.cpp \
basefilewizard.cpp \
basefilewizardfactory.cpp \ basefilewizardfactory.cpp \
generatedfile.cpp \ generatedfile.cpp \
plugindialog.cpp \ plugindialog.cpp \
...@@ -158,6 +159,7 @@ HEADERS += mainwindow.h \ ...@@ -158,6 +159,7 @@ HEADERS += mainwindow.h \
coreplugin.h \ coreplugin.h \
variablemanager.h \ variablemanager.h \
modemanager.h \ modemanager.h \
basefilewizard.h \
basefilewizardfactory.h \ basefilewizardfactory.h \
generatedfile.h \ generatedfile.h \
plugindialog.h \ plugindialog.h \
......
...@@ -28,6 +28,7 @@ QtcPlugin { ...@@ -28,6 +28,7 @@ QtcPlugin {
Group { Group {
name: "General" name: "General"
files: [ files: [
"basefilewizard.cpp", "basefilewizard.h",
"basefilewizardfactory.cpp", "basefilewizardfactory.h", "basefilewizardfactory.cpp", "basefilewizardfactory.h",
"core.qrc", "core.qrc",
"core_global.h", "core_global.h",
......
...@@ -111,7 +111,7 @@ void ClassNamePage::slotValidChanged() ...@@ -111,7 +111,7 @@ void ClassNamePage::slotValidChanged()
} }
CppClassWizardDialog::CppClassWizardDialog(QWidget *parent) : CppClassWizardDialog::CppClassWizardDialog(QWidget *parent) :
Utils::Wizard(parent), Core::BaseFileWizard(parent),
m_classNamePage(new ClassNamePage(this)) m_classNamePage(new ClassNamePage(this))
{ {
setWindowTitle(tr("C++ Class Wizard")); setWindowTitle(tr("C++ Class Wizard"));
...@@ -153,7 +153,7 @@ QString CppClassWizard::headerSuffix() const ...@@ -153,7 +153,7 @@ QString CppClassWizard::headerSuffix() const
return preferredSuffix(QLatin1String(Constants::CPP_HEADER_MIMETYPE)); return preferredSuffix(QLatin1String(Constants::CPP_HEADER_MIMETYPE));
} }
QWizard *CppClassWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const Core::BaseFileWizard *CppClassWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const
{ {
CppClassWizardDialog *wizard = new CppClassWizardDialog(parent); CppClassWizardDialog *wizard = new CppClassWizardDialog(parent);
foreach (QWizardPage *p, parameters.extensionPages()) foreach (QWizardPage *p, parameters.extensionPages())
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#ifndef CPPCLASSWIZARD_H #ifndef CPPCLASSWIZARD_H
#define CPPCLASSWIZARD_H #define CPPCLASSWIZARD_H
#include <coreplugin/basefilewizard.h>
#include <coreplugin/basefilewizardfactory.h> #include <coreplugin/basefilewizardfactory.h>
#include <utils/wizard.h> #include <utils/wizard.h>
...@@ -72,7 +73,7 @@ struct CppClassWizardParameters ...@@ -72,7 +73,7 @@ struct CppClassWizardParameters
int classType; int classType;
}; };
class CppClassWizardDialog : public Utils::Wizard class CppClassWizardDialog : public Core::BaseFileWizard
{ {
Q_OBJECT Q_OBJECT
...@@ -95,7 +96,7 @@ public: ...@@ -95,7 +96,7 @@ public:
CppClassWizard(); CppClassWizard();
private: private:
QWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const; Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const;
Core::GeneratedFiles generateFiles(const QWizard *w, Core::GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const; QString *errorMessage) const;
......
...@@ -60,7 +60,7 @@ QString FormClassWizard::formSuffix() const ...@@ -60,7 +60,7 @@ QString FormClassWizard::formSuffix() const
return preferredSuffix(QLatin1String(Constants::FORM_MIMETYPE)); return preferredSuffix(QLatin1String(Constants::FORM_MIMETYPE));
} }
QWizard *FormClassWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const Core::BaseFileWizard *FormClassWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const
{ {
FormClassWizardDialog *wizardDialog = new FormClassWizardDialog(parameters.extensionPages(), FormClassWizardDialog *wizardDialog = new FormClassWizardDialog(parameters.extensionPages(),
parent); parent);
......
...@@ -49,7 +49,7 @@ public: ...@@ -49,7 +49,7 @@ public:
QString formSuffix() const; QString formSuffix() const;
private: private:
QWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const; Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const;
Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const; Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
}; };
......
...@@ -44,7 +44,7 @@ namespace Internal { ...@@ -44,7 +44,7 @@ namespace Internal {
// ----------------- FormClassWizardDialog // ----------------- FormClassWizardDialog
FormClassWizardDialog::FormClassWizardDialog(const WizardPageList &extensionPages, FormClassWizardDialog::FormClassWizardDialog(const WizardPageList &extensionPages,
QWidget *parent) : QWidget *parent) :
Utils::Wizard(parent), Core::BaseFileWizard(parent),
m_formPage(new FormTemplateWizardPage), m_formPage(new FormTemplateWizardPage),
m_classPage(new FormClassWizardPage) m_classPage(new FormClassWizardPage)
{ {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#ifndef FORMCLASSWIZARDDIALOG_H #ifndef FORMCLASSWIZARDDIALOG_H
#define FORMCLASSWIZARDDIALOG_H #define FORMCLASSWIZARDDIALOG_H
#include <utils/wizard.h> #include <coreplugin/basefilewizard.h>
namespace Designer { namespace Designer {
...@@ -41,7 +41,7 @@ namespace Internal { ...@@ -41,7 +41,7 @@ namespace Internal {
class FormClassWizardPage; class FormClassWizardPage;
class FormTemplateWizardPage; class FormTemplateWizardPage;
class FormClassWizardDialog : public Utils::Wizard class FormClassWizardDialog : public Core::BaseFileWizard
{ {
Q_OBJECT Q_OBJECT
......
...@@ -42,7 +42,7 @@ FormWizard::FormWizard() ...@@ -42,7 +42,7 @@ FormWizard::FormWizard()
addRequiredFeature(Core::Id(QtSupport::Constants::FEATURE_QWIDGETS)); addRequiredFeature(Core::Id(QtSupport::Constants::FEATURE_QWIDGETS));
} }
QWizard *FormWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const Core::BaseFileWizard *FormWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const
{ {
FormFileWizardDialog *wizardDialog = new FormFileWizardDialog(parameters.extensionPages(), FormFileWizardDialog *wizardDialog = new FormFileWizardDialog(parameters.extensionPages(),
parent); parent);
......
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
FormWizard(); FormWizard();
private: private:
QWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const; Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const;
Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const; Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
}; };
......
...@@ -45,8 +45,8 @@ namespace Internal { ...@@ -45,8 +45,8 @@ namespace Internal {
// ----------------- FormWizardDialog // ----------------- FormWizardDialog
FormWizardDialog::FormWizardDialog(const WizardPageList &extensionPages, FormWizardDialog::FormWizardDialog(const WizardPageList &extensionPages,
QWidget *parent) QWidget *parent) :
: Utils::Wizard(parent), Core::BaseFileWizard(parent),
m_formPage(new FormTemplateWizardPage) m_formPage(new FormTemplateWizardPage)
{ {
init(extensionPages); init(extensionPages);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#ifndef FORMWIZARDDIALOG_H #ifndef FORMWIZARDDIALOG_H
#define FORMWIZARDDIALOG_H #define FORMWIZARDDIALOG_H
#include <utils/wizard.h> #include <coreplugin/basefilewizard.h>
namespace Utils { class FileWizardPage; } namespace Utils { class FileWizardPage; }
...@@ -42,7 +42,7 @@ class FormTemplateWizardPage; ...@@ -42,7 +42,7 @@ class FormTemplateWizardPage;
// Single-Page Wizard for new forms offering all types known to Qt Designer. // Single-Page Wizard for new forms offering all types known to Qt Designer.
// To be used for Mode "CreateNewEditor" [not currently used] // To be used for Mode "CreateNewEditor" [not currently used]
class FormWizardDialog : public Utils::Wizard class FormWizardDialog : public Core::BaseFileWizard
{ {
Q_OBJECT Q_OBJECT
......
...@@ -59,8 +59,8 @@ static const char *const ConfigFileTemplate = ...@@ -59,8 +59,8 @@ static const char *const ConfigFileTemplate =
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
GenericProjectWizardDialog::GenericProjectWizardDialog(QWidget *parent) GenericProjectWizardDialog::GenericProjectWizardDialog(QWidget *parent) :
: Utils::Wizard(parent) Core::BaseFileWizard(parent)
{ {
setWindowTitle(tr("Import Existing Project")); setWindowTitle(tr("Import Existing Project"));
...@@ -132,7 +132,7 @@ GenericProjectWizard::GenericProjectWizard() ...@@ -132,7 +132,7 @@ GenericProjectWizard::GenericProjectWizard()
setFlags(Core::IWizardFactory::PlatformIndependent); setFlags(Core::IWizardFactory::PlatformIndependent);
} }
QWizard *GenericProjectWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const Core::BaseFileWizard *GenericProjectWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const
{ {
GenericProjectWizardDialog *wizard = new GenericProjectWizardDialog(parent); GenericProjectWizardDialog *wizard = new GenericProjectWizardDialog(parent);
......
...@@ -30,22 +30,21 @@ ...@@ -30,22 +30,21 @@
#ifndef GENERICPROJECTWIZARD_H #ifndef GENERICPROJECTWIZARD_H
#define GENERICPROJECTWIZARD_H #define GENERICPROJECTWIZARD_H
#include <coreplugin/basefilewizard.h>
#include <coreplugin/basefilewizardfactory.h> #include <coreplugin/basefilewizardfactory.h>
#include <utils/wizard.h> #include <utils/wizard.h>
namespace Utils { class FileWizardPage; }
namespace GenericProjectManager { namespace GenericProjectManager {
namespace Internal { namespace Internal {
class FilesSelectionWizardPage; class FilesSelectionWizardPage;
class GenericProjectWizardDialog : public Utils::Wizard class GenericProjectWizardDialog : public Core::BaseFileWizard
{ {
Q_OBJECT Q_OBJECT
public: public:
GenericProjectWizardDialog(QWidget *parent = 0); explicit GenericProjectWizardDialog(QWidget *parent = 0);
QString path() const; QString path() const;
void setPath(const QString &path); void setPath(const QString &path);
...@@ -66,7 +65,7 @@ public: ...@@ -66,7 +65,7 @@ public:
GenericProjectWizard(); GenericProjectWizard();
protected: protected:
QWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const; Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const;
Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const; Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage); bool postGenerateFiles(const QWizard *w, const Core::GeneratedFiles &l, QString *errorMessage);
}; };
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#include "glslfilewizard.h" #include "glslfilewizard.h"
#include "glsleditorconstants.h" #include "glsleditorconstants.h"
#include <utils/filewizarddialog.h> #include <coreplugin/basefilewizard.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QFileInfo> #include <QFileInfo>
...@@ -38,18 +39,6 @@ ...@@ -38,18 +39,6 @@
#include <QWizard> #include <QWizard>
#include <QPushButton> #include <QPushButton>
namespace {
class GLSLFileWizardDialog : public Utils::FileWizardDialog
{
Q_OBJECT
public:
GLSLFileWizardDialog(QWidget *parent = 0)
: Utils::FileWizardDialog(parent)
{
}
};
} // anonymous namespace
using namespace GLSLEditor; using namespace GLSLEditor;
GLSLFileWizard::GLSLFileWizard(ShaderType shaderType) GLSLFileWizard::GLSLFileWizard(ShaderType shaderType)
...@@ -61,9 +50,9 @@ GLSLFileWizard::GLSLFileWizard(ShaderType shaderType) ...@@ -61,9 +50,9 @@ GLSLFileWizard::GLSLFileWizard(ShaderType shaderType)
Core::GeneratedFiles GLSLFileWizard::generateFiles(const QWizard *w, Core::GeneratedFiles GLSLFileWizard::generateFiles(const QWizard *w,
QString * /*errorMessage*/) const QString * /*errorMessage*/) const
{ {
const GLSLFileWizardDialog *wizardDialog = qobject_cast<const GLSLFileWizardDialog *>(w); const Core::BaseFileWizard *wizard = qobject_cast<const Core::BaseFileWizard *>(w);
const QString path = wizardDialog->path(); const QString path = wizard->path();
const QString name = wizardDialog->fileName(); const QString name = wizard->fileName();
const QString fileName = Core::BaseFileWizardFactory::buildFileName(path, name, preferredSuffix(m_shaderType)); const QString fileName = Core::BaseFileWizardFactory::buildFileName(path, name, preferredSuffix(m_shaderType));
...@@ -127,14 +116,14 @@ QString GLSLFileWizard::fileContents(const QString &, ShaderType shaderType) con ...@@ -127,14 +116,14 @@ QString GLSLFileWizard::fileContents(const QString &, ShaderType shaderType) con
return contents; return contents;
} }
QWizard *GLSLFileWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const Core::BaseFileWizard *GLSLFileWizard::create(QWidget *parent, const Core::WizardDialogParameters &parameters) const
{ {
GLSLFileWizardDialog *wizardDialog = new GLSLFileWizardDialog(parent); Core::BaseFileWizard *wizard = new Core::BaseFileWizard(parent);
wizardDialog->setWindowTitle(tr("New %1").arg(displayName())); wizard->setWindowTitle(tr("New %1").arg(displayName()));
wizardDialog->setPath(parameters.defaultPath()); wizard->setPath(parameters.defaultPath());
foreach (QWizardPage *p, parameters.extensionPages()) foreach (QWizardPage *p, parameters.extensionPages())
BaseFileWizardFactory::applyExtensionPageShortTitle(wizardDialog, wizardDialog->addPage(p)); BaseFileWizardFactory::applyExtensionPageShortTitle(wizard, wizard->addPage(p));
return wizardDialog; return wizard;
} }
QString GLSLFileWizard::preferredSuffix(ShaderType shaderType) const QString GLSLFileWizard::preferredSuffix(ShaderType shaderType) const
...@@ -152,5 +141,3 @@ QString GLSLFileWizard::preferredSuffix(ShaderType shaderType) const ...@@ -152,5 +141,3 @@ QString GLSLFileWizard::preferredSuffix(ShaderType shaderType) const
return QLatin1String("glsl"); return QLatin1String("glsl");
} }
} }
#include "glslfilewizard.moc"
...@@ -52,7 +52,7 @@ public: ...@@ -52,7 +52,7 @@ public:
private: private:
QString fileContents(const QString &baseName, ShaderType shaderType) const; QString fileContents(const QString &baseName, ShaderType shaderType) const;
QWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const; Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const;
Core::GeneratedFiles generateFiles(const QWizard *w, Core::GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const; QString *errorMessage) const;
......
...@@ -65,7 +65,7 @@ BaseProjectWizardDialogPrivate::BaseProjectWizardDialogPrivate(Utils::ProjectInt ...@@ -65,7 +65,7 @@ BaseProjectWizardDialogPrivate::BaseProjectWizardDialogPrivate(Utils::ProjectInt