QTfrontend/pagedata.cpp
changeset 5766 ca9c7551bc8a
parent 5765 e87f6756773e
child 5768 852ba8f5685c
equal deleted inserted replaced
5765:e87f6756773e 5766:ca9c7551bc8a
    86 
    86 
    87 
    87 
    88 void PageDataDownload::pageDownloaded()
    88 void PageDataDownload::pageDownloaded()
    89 {
    89 {
    90     QNetworkReply * reply = qobject_cast<QNetworkReply *>(sender());
    90     QNetworkReply * reply = qobject_cast<QNetworkReply *>(sender());
    91     QString html = QString::fromUtf8(reply->readAll());
       
    92     html.remove(0,html.indexOf("<!-- BEGIN -->"));
       
    93     html.truncate(html.indexOf("<!-- END -->"));
       
    94 
    91 
    95     if(reply)
    92     if(reply)
    96     {
    93     {
       
    94         QString html = QString::fromUtf8(reply->readAll());
       
    95         html.remove(0,html.indexOf("<!-- BEGIN -->"));
       
    96         html.truncate(html.indexOf("<!-- END -->"));
    97         web->setHtml(html);
    97         web->setHtml(html);
    98     }
    98     }
    99 }
    99 }
   100 
   100 
   101 void PageDataDownload::fileDownloaded()
   101 void PageDataDownload::fileDownloaded()