| 804 | } |
| 805 | |
| 806 | void ModuleWidget::randomizeAction() { |
| 807 | assert(module); |
| 808 | |
| 809 | // history::ModuleChange |
| 810 | history::ModuleChange* h = new history::ModuleChange; |
| 811 | h->name = "randomize module"; |
| 812 | h->moduleId = module->id; |
| 813 | h->oldModuleJ = toJson(); |
| 814 | |
| 815 | APP->engine->randomizeModule(module); |
| 816 | |
| 817 | h->newModuleJ = toJson(); |
| 818 | APP->history->push(h); |
| 819 | } |
| 820 | |
| 821 | void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) { |
| 822 | for (PortWidget* pw : getPorts()) { |
no test coverage detected