QTfrontend/pagedata.cpp
changeset 6042 8b5345758f62
parent 6009 14f6fc9869f2
--- a/QTfrontend/pagedata.cpp	Mon Sep 26 21:45:33 2011 +0400
+++ b/QTfrontend/pagedata.cpp	Tue Sep 27 00:38:39 2011 +0200
@@ -34,27 +34,32 @@
 #include "quazip.h"
 #include "quazipfile.h"
 
-PageDataDownload::PageDataDownload(QWidget* parent) : AbstractPage(parent)
+QLayout * PageDataDownload::bodyLayoutDefinition()
 {
-    QGridLayout * pageLayout = new QGridLayout(this);
+    QGridLayout * pageLayout = new QGridLayout();
     pageLayout->setColumnStretch(0, 1);
     pageLayout->setColumnStretch(1, 1);
     pageLayout->setColumnStretch(2, 1);
 
-
     web = new DataBrowser(this);
-    connect(web, SIGNAL(anchorClicked(QUrl)), this, SLOT(request(const QUrl&)));
-    web->setOpenLinks(false);
     pageLayout->addWidget(web, 0, 0, 1, 3);
 
     progressBarsLayout = new QVBoxLayout();
     pageLayout->addLayout(progressBarsLayout, 1, 0, 1, 3);
-
-    fetchList();
+    return pageLayout;
+}
 
+void PageDataDownload::connectSignals()
+{
+    connect(web, SIGNAL(anchorClicked(QUrl)), this, SLOT(request(const QUrl&)));
+}
 
-    BtnBack = addButton(":/res/Exit.png", pageLayout, 2, 0, true);
-    connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack()));
+PageDataDownload::PageDataDownload(QWidget* parent) : AbstractPage(parent)
+{
+    initPage();
+
+    web->setOpenLinks(false);
+    fetchList();
 }
 
 void PageDataDownload::request(const QUrl &url)