QTfrontend/ui_hwform.cpp
changeset 2515 51d3f4b6293a
parent 1950 09ad18a1be11
child 2516 effafd586a4e
--- a/QTfrontend/ui_hwform.cpp	Fri Oct 16 22:46:58 2009 +0000
+++ b/QTfrontend/ui_hwform.cpp	Sat Oct 17 01:28:49 2009 +0000
@@ -22,12 +22,13 @@
 #include <QStackedLayout>
 
 #include "ui_hwform.h"
+#include "hwform.h"
 #include "pages.h"
 #include "statsPage.h"
 #include "playrecordpage.h"
 #include "hwconsts.h"
 
-void Ui_HWForm::setupUi(QMainWindow *HWForm)
+void Ui_HWForm::setupUi(HWForm *HWForm)
 {
 	SetupFonts();
 
@@ -38,7 +39,7 @@
 	centralWidget = new QWidget(HWForm);
 	centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
 
-	SetupPages(centralWidget);
+	SetupPages(centralWidget, HWForm);
 
 	HWForm->setCentralWidget(centralWidget);
 
@@ -52,11 +53,11 @@
 	font14 = new QFont("MS Shell Dlg", 14);
 }
 
-void Ui_HWForm::SetupPages(QWidget *Parent)
+void Ui_HWForm::SetupPages(QWidget *Parent, HWForm *HWForm)
 {
 	Pages = new QStackedLayout(Parent);
 
-	pageEditTeam = new PageEditTeam();
+	pageEditTeam = new PageEditTeam(Parent, HWForm->sdli);
 	Pages->addWidget(pageEditTeam);
 
 	pageOptions = new PageOptions();