--- 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();
}
+
+