|
@@ -37,6 +37,7 @@ void IndexSystemWidget::connectSignalsAndSlots()
|
|
|
{
|
|
|
connect(m_mindView, &CMindView::sigAddSubNode, this, &IndexSystemWidget::slotAddSubNode);
|
|
|
connect(m_mindView->mind(), &CMind::sigRemoveNode, this, &IndexSystemWidget::slotRemoveNode);
|
|
|
+ connect(m_mindView, &CMindView::sigNodeChanged, this, &IndexSystemWidget::slotUpdateNode);
|
|
|
}
|
|
|
|
|
|
void IndexSystemWidget::setType(int type)
|
|
@@ -115,6 +116,11 @@ void IndexSystemWidget::slotAddSubNode(int pNumber)
|
|
|
addNode(n);
|
|
|
}
|
|
|
|
|
|
+void IndexSystemWidget::slotUpdateNode(CNodeData node)
|
|
|
+{
|
|
|
+ bool ret = CNodeDataService().UpdateCNodeData(node);
|
|
|
+}
|
|
|
+
|
|
|
void IndexSystemWidget::slotRemoveNode(int id)
|
|
|
{
|
|
|
removeNode(id);
|