12345678910111213141516171819202122232425 |
- #ifndef CMINDVIEW_H
- #define CMINDVIEW_H
- #include <QGraphicsView>
- #include "CNode.h"
- class CMindView : public QGraphicsView
- {
- public:
- CMindView(QWidget *parent = nullptr);
- // 节点数据
- QList<CNodeData> nodeList() const;
- void setNodeList(QList<CNodeData> list);
- void addNode(CNodeData node);
- void removeNode(CNodeData data, bool removeChildren = true);
- void removeNode(int id, bool remoeChildren = true);
- private:
- QList<CNodeData> m_nodeList;
- };
- #endif // CMINDVIEW_H
|