forked from qt-creator/qt-creator
Replace QWizard with Utils::Wizard
This commit is contained in:
@@ -51,7 +51,7 @@ using namespace Utils;
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
GenericProjectWizardDialog::GenericProjectWizardDialog(QWidget *parent)
|
||||
: QWizard(parent)
|
||||
: Utils::Wizard(parent)
|
||||
{
|
||||
setWindowTitle(tr("Import Existing Project"));
|
||||
|
||||
@@ -61,7 +61,8 @@ GenericProjectWizardDialog::GenericProjectWizardDialog(QWidget *parent)
|
||||
m_firstPage->setFileNameLabel(tr("Project name:"));
|
||||
m_firstPage->setPathLabel(tr("Location:"));
|
||||
|
||||
addPage(m_firstPage);
|
||||
const int firstPageId = addPage(m_firstPage);
|
||||
wizardProgress()->item(firstPageId)->setTitle(tr("Location"));
|
||||
}
|
||||
|
||||
GenericProjectWizardDialog::~GenericProjectWizardDialog()
|
||||
@@ -111,7 +112,7 @@ QWizard *GenericProjectWizard::createWizardDialog(QWidget *parent,
|
||||
wizard->setPath(defaultPath);
|
||||
|
||||
foreach (QWizardPage *p, extensionPages)
|
||||
wizard->addPage(p);
|
||||
BaseFileWizard::applyExtensionPageShortTitle(wizard, wizard->addPage(p));
|
||||
|
||||
return wizard;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
#define GENERICPROJECTWIZARD_H
|
||||
|
||||
#include <coreplugin/basefilewizard.h>
|
||||
|
||||
#include <QtGui/QWizard>
|
||||
#include <utils/wizard.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QFileInfo;
|
||||
@@ -48,7 +47,7 @@ class FileWizardPage;
|
||||
namespace GenericProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
class GenericProjectWizardDialog : public QWizard
|
||||
class GenericProjectWizardDialog : public Utils::Wizard
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user