MCPcopy Create free account
hub / github.com/dannagle/PacketSender / on_browserViewButton_clicked

Method on_browserViewButton_clicked

src/persistenthttp.cpp:73–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73void 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}

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.80
closeMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected