forked from qt-creator/qt-creator
Remove the side widget of the ProjectLoadWizard
We only have one page there, so there is no need for the side widget.
This commit is contained in:
@@ -48,7 +48,7 @@ using namespace Qt4ProjectManager;
|
|||||||
using namespace Qt4ProjectManager::Internal;
|
using namespace Qt4ProjectManager::Internal;
|
||||||
|
|
||||||
ProjectLoadWizard::ProjectLoadWizard(Qt4Project *project, QWidget *parent, Qt::WindowFlags flags)
|
ProjectLoadWizard::ProjectLoadWizard(Qt4Project *project, QWidget *parent, Qt::WindowFlags flags)
|
||||||
: Utils::Wizard(parent, flags), m_project(project), m_targetSetupPage(0)
|
: QWizard(parent, flags), m_project(project), m_targetSetupPage(0)
|
||||||
{
|
{
|
||||||
Q_ASSERT(project);
|
Q_ASSERT(project);
|
||||||
|
|
||||||
@@ -107,8 +107,7 @@ void ProjectLoadWizard::setupTargetPage()
|
|||||||
m_targetSetupPage->setImportDirectoryBrowsingEnabled(true);
|
m_targetSetupPage->setImportDirectoryBrowsingEnabled(true);
|
||||||
m_targetSetupPage->setImportDirectoryBrowsingLocation(m_project->projectDirectory());
|
m_targetSetupPage->setImportDirectoryBrowsingLocation(m_project->projectDirectory());
|
||||||
|
|
||||||
const int targetPageId = addPage(m_targetSetupPage);
|
addPage(m_targetSetupPage);
|
||||||
wizardProgress()->item(targetPageId)->setTitle(tr("Targets"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectLoadWizard::applySettings()
|
void ProjectLoadWizard::applySettings()
|
||||||
|
|||||||
@@ -32,7 +32,8 @@
|
|||||||
|
|
||||||
#include "qtversionmanager.h"
|
#include "qtversionmanager.h"
|
||||||
#include <wizards/targetsetuppage.h>
|
#include <wizards/targetsetuppage.h>
|
||||||
#include <utils/wizard.h>
|
|
||||||
|
#include <QtGui/QWizard>
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
class Qt4Project;
|
class Qt4Project;
|
||||||
@@ -41,7 +42,7 @@ namespace Internal {
|
|||||||
|
|
||||||
class TargetsPage;
|
class TargetsPage;
|
||||||
|
|
||||||
class ProjectLoadWizard : public Utils::Wizard
|
class ProjectLoadWizard : public QWizard
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user