| 498 | |
| 499 | |
| 500 | void |
| 501 | FlowScene:: |
| 502 | load() |
| 503 | { |
| 504 | clearScene(); |
| 505 | |
| 506 | //------------- |
| 507 | |
| 508 | QString fileName = |
| 509 | QFileDialog::getOpenFileName(nullptr, |
| 510 | tr("Open Flow Scene"), |
| 511 | QDir::homePath(), |
| 512 | tr("Flow Scene Files (*.flow)")); |
| 513 | |
| 514 | if (!QFileInfo::exists(fileName)) |
| 515 | return; |
| 516 | |
| 517 | QFile file(fileName); |
| 518 | |
| 519 | if (!file.open(QIODevice::ReadOnly)) |
| 520 | return; |
| 521 | |
| 522 | QByteArray wholeFile = file.readAll(); |
| 523 | |
| 524 | loadFromMemory(wholeFile); |
| 525 | } |
| 526 | |
| 527 | |
| 528 | QByteArray |
nothing calls this directly
no outgoing calls
no test coverage detected