MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / refresh

Method refresh

Source/GUI/Qt/htmlwidget.cpp:92–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void HTMLViewWidget::refresh() {
93 QString HTML;
94 if (C->Kind_Get() == Core::Kind_Graph_Svg)
95 HTML = generateGraphHTML();
96 else
97 HTML = wstring2QString(C->Inform_Get());
98
99 if (HTML.toUtf8().size() < 0.5e6)
100 webView->setHtml(HTML);
101 else {
102 if (!tempFile.open())
103 return;
104 tempFile.resize(0);
105 tempFile.write(HTML.toUtf8());
106 webView->load(QUrl::fromLocalFile(tempFile.fileName()));
107 }
108}
109
110void HTMLViewWidget::changeFilePos(int newFilePos) {
111 FilePos = newFilePos;

Callers

nothing calls this directly

Calls 4

Kind_GetMethod · 0.80
setHtmlMethod · 0.80
Inform_GetMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected