123456789101112131415161718192021222324252627282930313233343536373839 |
- #include "EXIndexView.h"
- #include "dbService/ClassSet.h"
- #include "dbService/CNodeDataService.h"
- #include <CMindView.h>
- #include <QTabWidget>
- #include <QDebug>
- EXIndexView::EXIndexView(ProjectInfo *proj, QWidget *parent) : EXEvalView(proj, parent)
- {
- setTitle("指标体系");
- }
- void EXIndexView::setType(int type)
- {
- EXEvalView::setType(type);
- setupTabWidget();
- }
- void EXIndexView::setupTabWidget()
- {
- m_tab->clear();
- for (int i : indexList()) {
- CMindView *m = new CMindView(this);
- m->setAllowEdit(false);
- ProjectManager::IndexType t = (ProjectManager::IndexType)i;
- QString s = ProjectManager::nameOfIndexType(t);
- m_tab->addTab(m, s);
- QList<CNodeData> list;
- bool ret = CNodeDataService().QueryAllValid(list, proj()->id, t);
- if (ret) {
- m->setNodeList(list);
- }
- }
- }
|