MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / save

Method save

QtNodeEditor/src/FlowScene.cpp:476–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474
475
476void
477FlowScene::
478save() const
479{
480 QString fileName =
481 QFileDialog::getSaveFileName(nullptr,
482 tr("Open Flow Scene"),
483 QDir::homePath(),
484 tr("Flow Scene Files (*.flow)"));
485
486 if (!fileName.isEmpty())
487 {
488 if (!fileName.endsWith("flow", Qt::CaseInsensitive))
489 fileName += ".flow";
490
491 QFile file(fileName);
492 if (file.open(QIODevice::WriteOnly))
493 {
494 file.write(saveToMemory());
495 }
496 }
497}
498
499
500void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected