chengxr 1 vuosi sitten
vanhempi
commit
21df697578
2 muutettua tiedostoa jossa 2 lisäystä ja 9 poistoa
  1. 2 7
      QFD/widgets/IndexSystemWidget.cpp
  2. 0 2
      QFD/widgets/IndexSystemWidget.h

+ 2 - 7
QFD/widgets/IndexSystemWidget.cpp

@@ -83,11 +83,6 @@ void IndexSystemWidget::addNode(CNodeData node)
     }
 }
 
-void IndexSystemWidget::removeNode(int id)
-{
-    qDebug() << __FUNCTION__ << __LINE__ << id << endl;
-}
-
 void IndexSystemWidget::slotSelectAllNodes()
 {
     qDebug() << __FUNCTION__ << __LINE__ << endl;
@@ -118,10 +113,10 @@ void IndexSystemWidget::slotAddSubNode(int pNumber)
 
 void IndexSystemWidget::slotUpdateNode(CNodeData node)
 {
-    bool ret = CNodeDataService().UpdateCNodeData(node);
+    CNodeDataService().UpdateCNodeData(node);
 }
 
 void IndexSystemWidget::slotRemoveNode(int id)
 {
-    removeNode(id);
+    CNodeDataService().DeleteCNodeDataById(id);
 }

+ 0 - 2
QFD/widgets/IndexSystemWidget.h

@@ -27,8 +27,6 @@ public:
 
     void addNode(CNodeData node);
 
-    void removeNode(int id);
-
 signals:
 
 public slots: