| 474 | |
| 475 | |
| 476 | void |
| 477 | FlowScene:: |
| 478 | save() 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 | |
| 500 | void |
nothing calls this directly
no outgoing calls
no test coverage detected