You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
736 B
C++
35 lines
736 B
C++
#ifndef nmWxTreeWidget_H
|
|
#define nmWxTreeWidget_H
|
|
|
|
#include "nmSubWxs_global.h"
|
|
#include <QWidget>
|
|
|
|
class nmDataDemo;
|
|
class QTreeWidget;
|
|
class QTreeWidgetItem;
|
|
|
|
class NM_SUB_WXS_EXPORT nmWxTreeWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit nmWxTreeWidget(QWidget *parent = nullptr, nmDataDemo* pAnalyzeData = nullptr);
|
|
|
|
signals:
|
|
|
|
private:
|
|
// 分析数据的指针,注意,每次新建分析后,都需要重新设置
|
|
nmDataDemo* m_pAnalyzeData;
|
|
// 结构树
|
|
QTreeWidget* m_treeWidget;
|
|
// 结构树根节点
|
|
QTreeWidgetItem* m_treeRoot;
|
|
|
|
private:
|
|
// 初始化布局和结构树
|
|
void initUI();
|
|
// 根据分析数据渲染结构树
|
|
void renderTree();
|
|
};
|
|
|
|
#endif // nmWxTreeWidget_H
|