program clown 1 жил өмнө
parent
commit
a080a5261a

+ 9 - 3
QFD/widgets/EvalReportWidget.cpp

@@ -49,7 +49,7 @@ void EvalReportWidget::initWidgets()
     DataTableItemModel *techModel = new DataTableItemModel();
     m_techTable->setModel(techModel);
     m_techTable->setFixedSize(s);
-    m_techPlot = new PlotView(PlotView::Line, data, "", this);
+    m_techPlot = new PlotView(PlotView::HistogramHorizontal, data, "", this);
     m_techPlot->setFixedSize(s);
 
     m_schemeTitle = new QLabel(this);
@@ -61,7 +61,7 @@ void EvalReportWidget::initWidgets()
     DataTableItemModel *schemeModel = new DataTableItemModel();
     m_schemeTable->setModel(schemeModel);
     m_schemeTable->setFixedSize(s);
-    m_schemePlot = new PlotView(PlotView::Line, data, "", this);
+    m_schemePlot = new PlotView(PlotView::HistogramVertical, data, "", this);
     m_schemePlot->setFixedSize(s);
 
     QStringList plots = { "折线图", "横向柱状图", "竖向柱状图", "曲线图", "面积图" };
@@ -71,6 +71,7 @@ void EvalReportWidget::initWidgets()
     m_indexCombo->addItems(plots);
     connect(m_indexCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(slotSelectIndexPlotType(int)));
 
+    plots       = QStringList { "竖向柱状图" };
     m_techCombo = new QComboBox(this);
     m_techCombo->setFixedSize(QSize(150, 35));
     m_techCombo->addItems(plots);
@@ -113,7 +114,12 @@ void EvalReportWidget::initLayouts()
 
     if (m_indexType == ProjectManager::OptimalIndex || m_indexType == ProjectManager::EfficiencyIndex) {
         m_schemeTitle = new QLabel(this);
-        m_schemeTitle->setText("方案得分");
+        if (m_indexType == ProjectManager::OptimalIndex) {
+            m_schemeTitle->setText("方案得分");
+        } else {
+            m_schemeTitle->setText("效能分析");
+        }
+
         m_schemeTitle->setFont(ft);
         m_schemeTitle->setFixedHeight(100);
         m_schemeTitle->setContentsMargins(0, 50, 0, 10);

+ 2 - 2
QFD/widgets/GreyClusteringSampleTable.cpp

@@ -193,8 +193,8 @@ void GreyClusteringSampleTable::refreshTableView()
         // 二级
         hHeader->setCellText(1, m_nodeDepth + 2 + greyNames.size(), "左");
         hHeader->setCellText(1, m_nodeDepth + 3 + greyNames.size(), "右");
-        hHeader->setCellText(1, m_nodeDepth + 4 + greyNames.size(), "前");
-        hHeader->setCellText(1, m_nodeDepth + 5 + greyNames.size(), "后");
+        hHeader->setCellText(1, m_nodeDepth + 4 + greyNames.size(), "建设前");
+        hHeader->setCellText(1, m_nodeDepth + 5 + greyNames.size(), "建设后");
 
         this->setHorizontalHeader(hHeader);
     }