MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / loadCanvas

Method loadCanvas

mainwindow.cpp:442–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442MyCanvas* MainWindow::loadCanvas(const QString &path){
443 QFile input(path);
444 input.open(QIODevice::ReadOnly);
445 QTextStream ts(&input);
446 QString magicString = ts.readLine();
447 if(magicString != "VFdGeWFXUnZaekl3TURJd05ESTE=") return nullptr;
448 MyCanvas *newCanvas = new MyCanvas(ts, cornerRadius, ui->mainWidget);
449 input.close();
450 return newCanvas;
451}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected