QTfrontend/pagecampaign.cpp
changeset 6042 8b5345758f62
parent 6009 14f6fc9869f2
--- a/QTfrontend/pagecampaign.cpp	Mon Sep 26 21:45:33 2011 +0400
+++ b/QTfrontend/pagecampaign.cpp	Tue Sep 27 00:38:39 2011 +0200
@@ -22,9 +22,9 @@
 
 #include "pagecampaign.h"
 
-PageCampaign::PageCampaign(QWidget* parent) : AbstractPage(parent)
+QLayout * PageCampaign::bodyLayoutDefinition()
 {
-    QGridLayout * pageLayout = new QGridLayout(this);
+    QGridLayout * pageLayout = new QGridLayout();
     pageLayout->setColumnStretch(0, 1);
     pageLayout->setColumnStretch(1, 2);
     pageLayout->setColumnStretch(2, 1);
@@ -42,7 +42,12 @@
     BtnStartCampaign->setText(QPushButton::tr("Go!"));
     pageLayout->addWidget(BtnStartCampaign, 2, 2);
 
+    return pageLayout;
+}
 
-    BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
-    connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack()));
+PageCampaign::PageCampaign(QWidget* parent) : AbstractPage(parent)
+{
+    initPage();
 }
+
+