Skip to content

Commit

Permalink
Merge the installtype, install and locate wizard pages into one page …
Browse files Browse the repository at this point in the history
…with a QStackedWidget.
  • Loading branch information
jpcy committed May 15, 2014
1 parent 6da3a41 commit c32abd4
Show file tree
Hide file tree
Showing 17 changed files with 327 additions and 368 deletions.
18 changes: 5 additions & 13 deletions installwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
#include "installwizard.h"
#include "ui_installwizard.h"
#include "installwizard_installtype.h"
#include "installwizard_locate.h"
#include "installwizard_copy.h"
#include "installwizard_eula.h"
#include "installwizard_install.h"
#include "installwizard_patch.h"
#include "installwizard_finished.h"
#include "settings.h"
Expand All @@ -26,17 +24,11 @@ InstallWizard::InstallWizard(QWidget *parent, Settings *settings) :
ui->setupUi(this);
connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancel()));

setPage(Page_InstallType, new InstallWizard_InstallType(this));

#ifdef Q_OS_WIN32
setPage(Page_Locate, new InstallWizard_LocatePage(this, settings));
#endif

setPage(Page_Install, new InstallWizard_Install());
setPage(Page_Eula, new InstallWizard_Eula());
setPage(Page_Copy, new InstallWizard_Copy());
setPage(Page_Patch, new InstallWizard_Patch());
setPage(Page_Finished, new InstallWizard_Finished());
setPage(Page_InstallType, new InstallWizard_InstallType(this, settings));
setPage(Page_Eula, new InstallWizard_Eula(this));
setPage(Page_Copy, new InstallWizard_Copy(this));
setPage(Page_Patch, new InstallWizard_Patch(this));
setPage(Page_Finished, new InstallWizard_Finished(this));
}

InstallWizard::~InstallWizard()
Expand Down
2 changes: 0 additions & 2 deletions installwizard.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class InstallWizard : public QWizard
enum
{
Page_InstallType,
Page_Locate,
Page_Install,
Page_Eula,
Page_Copy,
Page_Patch,
Expand Down
4 changes: 2 additions & 2 deletions installwizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>640</width>
<height>480</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
4 changes: 2 additions & 2 deletions installwizard_copy.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>640</width>
<height>480</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
4 changes: 2 additions & 2 deletions installwizard_eula.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>640</width>
<height>480</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
4 changes: 2 additions & 2 deletions installwizard_finished.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>640</width>
<height>480</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
70 changes: 0 additions & 70 deletions installwizard_install.cpp

This file was deleted.

31 changes: 0 additions & 31 deletions installwizard_install.h

This file was deleted.

63 changes: 0 additions & 63 deletions installwizard_install.ui

This file was deleted.

Loading

0 comments on commit c32abd4

Please sign in to comment.