equal
deleted
inserted
replaced
204 file = 0; |
204 file = 0; |
205 } |
205 } |
206 |
206 |
207 void HttpWindow::httpReadyRead() |
207 void HttpWindow::httpReadyRead() |
208 { |
208 { |
209 // this slot gets called everytime the QNetworkReply has new data. |
209 // this slot gets called every time the QNetworkReply has new data. |
210 // We read all of its new data and write it into the file. |
210 // We read all of its new data and write it into the file. |
211 // That way we use less RAM than when reading it at the finished() |
211 // That way we use less RAM than when reading it at the finished() |
212 // signal of the QNetworkReply |
212 // signal of the QNetworkReply |
213 if (file) |
213 if (file) |
214 file->write(reply->readAll()); |
214 file->write(reply->readAll()); |