MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / loadData

Method loadData

src/gui/documentviewer/WizSvgEditorDialog.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void WizSvgEditorDialog::loadData(QString fileName, QString callback)
81{
82 QString text;
83 fileName = m_indexFilesPath + fileName;
84 WizLoadUnicodeTextFromFile(fileName, text);
85
86 text = text.replace("\\", "\\\\");
87 QString js = QString("%1(`%2`)").arg(callback).arg(text);
88 web()->page()->runJavaScript(js);
89}
90
91void WizSvgEditorDialog::saveData(QString options, QString svgData, QString htmlData)
92{

Callers 1

WizSvgPainter.jsFile · 0.80

Calls 2

QStringClass · 0.70

Tested by

no test coverage detected