QTfrontend/ui/page/pagedata.cpp
changeset 13284 b504131f7405
parent 12674 8d266b2d0f9c
equal deleted inserted replaced
13283:f816b9e73fcb 13284:b504131f7405
    29 #include <QDesktopServices>
    29 #include <QDesktopServices>
    30 
    30 
    31 #include "pagedata.h"
    31 #include "pagedata.h"
    32 #include "databrowser.h"
    32 #include "databrowser.h"
    33 #include "hwconsts.h"
    33 #include "hwconsts.h"
    34 #include "DataManager.h"
       
    35 #include "FileEngine.h"
       
    36 
    34 
    37 QLayout * PageDataDownload::bodyLayoutDefinition()
    35 QLayout * PageDataDownload::bodyLayoutDefinition()
    38 {
    36 {
    39     QGridLayout * pageLayout = new QGridLayout();
    37     QGridLayout * pageLayout = new QGridLayout();
    40     pageLayout->setColumnStretch(0, 1);
    38     pageLayout->setColumnStretch(0, 1);
   195         }
   193         }
   196 
   194 
   197         out.write(reply->readAll());
   195         out.write(reply->readAll());
   198 
   196 
   199         out.close();
   197         out.close();
   200 
       
   201         // now mount it
       
   202         FileEngineHandler::mount(fileName);
       
   203     }
   198     }
   204 }
   199 }
   205 
   200 
   206 void PageDataDownload::downloadProgress(qint64 bytesRecieved, qint64 bytesTotal)
   201 void PageDataDownload::downloadProgress(qint64 bytesRecieved, qint64 bytesTotal)
   207 {
   202 {
   227 void PageDataDownload::onPageLeave()
   222 void PageDataDownload::onPageLeave()
   228 {
   223 {
   229     if (m_contentDownloaded)
   224     if (m_contentDownloaded)
   230     {
   225     {
   231         m_contentDownloaded = false;
   226         m_contentDownloaded = false;
   232         //DataManager::instance().reload();
       
   233     }
   227     }
   234 }
   228 }
   235 
   229 
   236 void PageDataDownload::openPackagesDir()
   230 void PageDataDownload::openPackagesDir()
   237 {
   231 {