summaryrefslogtreecommitdiff
path: root/ui/qt5/horizonwizard.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-22 08:50:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-22 08:50:26 -0500
commitbb58a013f4dc10a359d786ce157d53408fd4fcdd (patch)
treeca8208a9385fd90682d99ed67b82b55e1c3f5c35 /ui/qt5/horizonwizard.cc
parenta9b35213d330faa3fc551c9a8c3524d519d8466b (diff)
downloadhorizon-bb58a013f4dc10a359d786ce157d53408fd4fcdd.tar.gz
horizon-bb58a013f4dc10a359d786ce157d53408fd4fcdd.tar.bz2
horizon-bb58a013f4dc10a359d786ce157d53408fd4fcdd.tar.xz
horizon-bb58a013f4dc10a359d786ce157d53408fd4fcdd.zip
Qt UI: Implement Mount Point selection, the last wizard page
Diffstat (limited to 'ui/qt5/horizonwizard.cc')
-rw-r--r--ui/qt5/horizonwizard.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index 161accf..143ae43 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -47,6 +47,7 @@ extern "C" {
#include "partitiondiskpage.hh"
#include "partitionchoicepage.hh"
#include "partitionmanualpage.hh"
+#include "partitionmountpage.hh"
#include "networkingpage.hh"
#include "networkifacepage.hh"
#include "netsimplewifipage.hh"
@@ -251,6 +252,9 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) {
setPage(Page_PartitionDisk, new PartitionDiskPage);
setPage(Page_PartitionChoose, new PartitionChoicePage);
setPage(Page_PartitionManual, new PartitionManualPage);
+#ifdef HAS_INSTALL_ENV
+ setPage(Page_PartitionMount, new PartitionMountPage);
+#endif /* HAS_INSTALL_ENV */
setPage(Page_Network, new NetworkingPage);
setPage(Page_Network_Iface, new NetworkIfacePage);
setPage(Page_Network_Wireless, new NetworkSimpleWirelessPage);
@@ -538,6 +542,8 @@ QString HorizonWizard::toHScript() {
break;
}
+ part_lines << (dynamic_cast<PartitionMountPage *>(page(Page_PartitionMount)))->mountLines();
+
if(chosen_disk.empty()) {
lines << part_lines;
} else if(!auto_part) {