|
|
@@ -133,6 +133,7 @@ void PLC::applyProjectToScene(const Project& proj) |
|
|
|
connect(item, &Item::requestDelete, ui->graphicsView, &MyGraphicsView::onItemRequestDelete); |
|
|
|
connect(item, &Item::requestBindRegister, ui->graphicsView, &MyGraphicsView::onItemRequestBindRegister); |
|
|
|
plc_scene_->addItem(item); |
|
|
|
registerManager->bindItem(item,d.registerId); |
|
|
|
itemObjs.append(item); |
|
|
|
} |
|
|
|
for (const auto& c : proj.connections_) { |
|
|
|