12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include "SchemeDesignWidget.h"
- #include "SchemeFlowWidget.h"
- #include <CSchemeView.h>
- #include <QTabWidget>
- #include <QLayout>
- #include <QDebug>
- SchemeDesignWidget::SchemeDesignWidget(ProjectInfo *proj, QWidget *parent) : EvalWidget(proj, parent)
- {
- setTitle("评估方案规划");
- }
- void SchemeDesignWidget::setType(int type)
- {
- EvalWidget::setType(type);
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- setupTabWidget();
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- }
- void SchemeDesignWidget::setupTabWidget()
- {
- m_tab->clear();
- for (int i : indexList()) {
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- SchemeFlowWidget *m = new SchemeFlowWidget(proj(), i, this);
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- ProjectManager::IndexType t = (ProjectManager::IndexType)i;
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- QString s = ProjectManager::nameOfIndexType(t);
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- m_tab->addTab(m, s);
- qDebug() << __FUNCTION__ << __LINE__ << endl;
- }
- }
|