TODO: this should only be active when the tree is done building
| 417 | |
| 418 | /// TODO: this should only be active when the tree is done building |
| 419 | void ExecutionWindow::removeSelectedNode() |
| 420 | { |
| 421 | |
| 422 | auto nid = execution_.userData().getSelectedNode(); |
| 423 | if (nid == NodeID::NoNode) |
| 424 | return; |
| 425 | |
| 426 | const auto pid = execution_.tree().getParent(nid); |
| 427 | execution_.userData().setSelectedNode(pid); |
| 428 | |
| 429 | execution_.tree().removeNode(nid); |
| 430 | |
| 431 | if (pid != NodeID::NoNode) |
| 432 | { |
| 433 | traditional_view_->dirtyUp(pid); |
| 434 | } |
| 435 | |
| 436 | traditional_view_->setLayoutOutdated(); |
| 437 | traditional_view_->redraw(); |
| 438 | } |
| 439 | |
| 440 | static void writeToFile(const QString &path, const QString &str) |
| 441 | { |
nothing calls this directly
no test coverage detected