| 71 | |
| 72 | |
| 73 | void PersistentHTTP::on_browserViewButton_clicked() |
| 74 | { |
| 75 | |
| 76 | QString dl = ui->browserViewButton->property("html-download").toString(); |
| 77 | QFile file(dl); |
| 78 | if (file.open(QFile::WriteOnly)) { |
| 79 | file.write(data); |
| 80 | file.close(); |
| 81 | |
| 82 | QFileInfo fileInfo(file); |
| 83 | |
| 84 | QDEBUGVAR(fileInfo.canonicalFilePath()); |
| 85 | tempFiles.append(fileInfo.canonicalFilePath()); |
| 86 | |
| 87 | //tempReferences.append(file); |
| 88 | |
| 89 | QDesktopServices::openUrl(QUrl(fileInfo.canonicalFilePath())); |
| 90 | |
| 91 | } |
| 92 | |
| 93 | } |