equal
deleted
inserted
replaced
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() |