diff -r a740069c21e3 -r 8b5345758f62 QTfrontend/pagenettype.cpp --- a/QTfrontend/pagenettype.cpp Mon Sep 26 21:45:33 2011 +0400 +++ b/QTfrontend/pagenettype.cpp Tue Sep 27 00:38:39 2011 +0200 @@ -21,9 +21,10 @@ #include "pagenettype.h" -PageNetType::PageNetType(QWidget* parent) : AbstractPage(parent) + +QLayout * PageNetType::bodyLayoutDefinition() { - QGridLayout * pageLayout = new QGridLayout(this); + QGridLayout * pageLayout = new QGridLayout(); pageLayout->setRowStretch(0, 10); pageLayout->setRowStretch(3, 10); @@ -37,7 +38,10 @@ // hack: temporary deactivated - requires server modifications that aren't backward compatible (yet) //BtnOfficialServer->setEnabled(false); + return pageLayout; +} - BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true); - connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack())); +PageNetType::PageNetType(QWidget* parent) : AbstractPage(parent) +{ + initPage(); }