IndexSystemWidget.cpp 592 B

123456789101112131415161718192021222324252627
  1. #include "IndexSystemWidget.h"
  2. #include <dbService/ClassSet.h>
  3. #include <CCanvas/CMindView.h>
  4. #include <CMind.h>
  5. #include <QLayout>
  6. IndexSystemWidget::IndexSystemWidget(ProjectInfo *proj, int type, QWidget *parent) : EvalWidget(proj, type, parent)
  7. {
  8. setTitle("指标体系设计");
  9. initWidgets();
  10. initLayout();
  11. }
  12. void IndexSystemWidget::initWidgets()
  13. {
  14. m_mindView = new CMindView(this);
  15. CMind *mind = new CMind(m_proj->id, m_type, m_mindView);
  16. m_mindView->setMind(mind);
  17. }
  18. void IndexSystemWidget::initLayout()
  19. {
  20. m_contentLayout->addWidget(m_mindView);
  21. }