SettingView.cpp 744 B

1234567891011121314151617181920212223242526272829303132
  1. #include "SettingView.h"
  2. #include "ExpertManageView.h"
  3. #include "AlgorithmManageView.h"
  4. #include "StandardManageView.h"
  5. #include <QTabWidget>
  6. #include <QBoxLayout>
  7. SettingView::SettingView(QWidget *parent) : QWidget(parent)
  8. {
  9. initWidgets();
  10. initLayout();
  11. }
  12. void SettingView::initWidgets()
  13. {
  14. m_tab = new QTabWidget(this);
  15. m_expert = new ExpertManageView(this);
  16. m_algorithm = new AlgorithmManageView(this);
  17. m_standard = new StandardManageView(this);
  18. }
  19. void SettingView::initLayout()
  20. {
  21. m_layout = new QVBoxLayout(this);
  22. m_layout->addWidget(m_tab);
  23. m_tab->addTab(m_expert, "专家信息管理");
  24. m_tab->addTab(m_algorithm, "算法管理");
  25. m_tab->addTab(m_standard, "标准管理");
  26. }