QTfrontend/pagedata.cpp
changeset 6042 8b5345758f62
parent 6009 14f6fc9869f2
equal deleted inserted replaced
6040:a740069c21e3 6042:8b5345758f62
    32 #include "hwconsts.h"
    32 #include "hwconsts.h"
    33 
    33 
    34 #include "quazip.h"
    34 #include "quazip.h"
    35 #include "quazipfile.h"
    35 #include "quazipfile.h"
    36 
    36 
    37 PageDataDownload::PageDataDownload(QWidget* parent) : AbstractPage(parent)
    37 QLayout * PageDataDownload::bodyLayoutDefinition()
    38 {
    38 {
    39     QGridLayout * pageLayout = new QGridLayout(this);
    39     QGridLayout * pageLayout = new QGridLayout();
    40     pageLayout->setColumnStretch(0, 1);
    40     pageLayout->setColumnStretch(0, 1);
    41     pageLayout->setColumnStretch(1, 1);
    41     pageLayout->setColumnStretch(1, 1);
    42     pageLayout->setColumnStretch(2, 1);
    42     pageLayout->setColumnStretch(2, 1);
    43 
    43 
    44 
       
    45     web = new DataBrowser(this);
    44     web = new DataBrowser(this);
    46     connect(web, SIGNAL(anchorClicked(QUrl)), this, SLOT(request(const QUrl&)));
       
    47     web->setOpenLinks(false);
       
    48     pageLayout->addWidget(web, 0, 0, 1, 3);
    45     pageLayout->addWidget(web, 0, 0, 1, 3);
    49 
    46 
    50     progressBarsLayout = new QVBoxLayout();
    47     progressBarsLayout = new QVBoxLayout();
    51     pageLayout->addLayout(progressBarsLayout, 1, 0, 1, 3);
    48     pageLayout->addLayout(progressBarsLayout, 1, 0, 1, 3);
    52 
    49     return pageLayout;
       
    50 }
       
    51 
       
    52 void PageDataDownload::connectSignals()
       
    53 {
       
    54     connect(web, SIGNAL(anchorClicked(QUrl)), this, SLOT(request(const QUrl&)));
       
    55 }
       
    56 
       
    57 PageDataDownload::PageDataDownload(QWidget* parent) : AbstractPage(parent)
       
    58 {
       
    59     initPage();
       
    60 
       
    61     web->setOpenLinks(false);
    53     fetchList();
    62     fetchList();
    54 
       
    55 
       
    56     BtnBack = addButton(":/res/Exit.png", pageLayout, 2, 0, true);
       
    57     connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack()));
       
    58 }
    63 }
    59 
    64 
    60 void PageDataDownload::request(const QUrl &url)
    65 void PageDataDownload::request(const QUrl &url)
    61 {
    66 {
    62     QUrl finalUrl;
    67     QUrl finalUrl;