|
@@ -18,6 +18,8 @@
|
|
#include <QGridLayout>
|
|
#include <QGridLayout>
|
|
#include <QComboBox>
|
|
#include <QComboBox>
|
|
|
|
|
|
|
|
+static QSize kFigureSize = QSize(750, 750);
|
|
|
|
+
|
|
EvalReportWidget::EvalReportWidget(ProjectInfo *proj, int indexType, QWidget *parent)
|
|
EvalReportWidget::EvalReportWidget(ProjectInfo *proj, int indexType, QWidget *parent)
|
|
: QWidget(parent), m_proj(proj), m_indexType(indexType)
|
|
: QWidget(parent), m_proj(proj), m_indexType(indexType)
|
|
{
|
|
{
|
|
@@ -47,7 +49,7 @@ void EvalReportWidget::initWidgets()
|
|
{
|
|
{
|
|
m_view = new QWidget;
|
|
m_view = new QWidget;
|
|
|
|
|
|
- QSize s = QSize(600, 600);
|
|
|
|
|
|
+ QSize s = kFigureSize;
|
|
|
|
|
|
m_indexTitle = new QLabel(this);
|
|
m_indexTitle = new QLabel(this);
|
|
m_indexTab = new QTabWidget(this);
|
|
m_indexTab = new QTabWidget(this);
|
|
@@ -295,7 +297,7 @@ void EvalReportWidget::showIndexWeightPlot()
|
|
if (m_indexCombo->currentIndex() < 5) {
|
|
if (m_indexCombo->currentIndex() < 5) {
|
|
PlotView::PlotType type = (PlotView::PlotType)m_indexCombo->currentIndex();
|
|
PlotView::PlotType type = (PlotView::PlotType)m_indexCombo->currentIndex();
|
|
m_indexPlot = new PlotView(type, values, "", this);
|
|
m_indexPlot = new PlotView(type, values, "", this);
|
|
- m_indexPlot->setFixedSize(600, 600);
|
|
|
|
|
|
+ m_indexPlot->setFixedSize(kFigureSize);
|
|
m_indexPlot->plot();
|
|
m_indexPlot->plot();
|
|
m_gridLayout->addWidget(m_indexPlot, 1, 1);
|
|
m_gridLayout->addWidget(m_indexPlot, 1, 1);
|
|
} else {
|
|
} else {
|
|
@@ -313,7 +315,7 @@ void EvalReportWidget::showIndexWeightPlot()
|
|
}
|
|
}
|
|
|
|
|
|
m_indexPie = new CustomPieChart("", tagList, dataList, colorList);
|
|
m_indexPie = new CustomPieChart("", tagList, dataList, colorList);
|
|
- m_indexPie->setFixedSize(600, 600);
|
|
|
|
|
|
+ m_indexPie->setFixedSize(kFigureSize);
|
|
m_gridLayout->addWidget(m_indexPie, 1, 1);
|
|
m_gridLayout->addWidget(m_indexPie, 1, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -397,7 +399,7 @@ void EvalReportWidget::showTechScorePlot()
|
|
if (m_techCombo->currentIndex() < 5) {
|
|
if (m_techCombo->currentIndex() < 5) {
|
|
PlotView::PlotType type = (PlotView::PlotType)m_techCombo->currentIndex();
|
|
PlotView::PlotType type = (PlotView::PlotType)m_techCombo->currentIndex();
|
|
m_techPlot = new PlotView(type, values, "", this);
|
|
m_techPlot = new PlotView(type, values, "", this);
|
|
- m_techPlot->setFixedSize(600, 600);
|
|
|
|
|
|
+ m_techPlot->setFixedSize(kFigureSize);
|
|
m_techPlot->plot();
|
|
m_techPlot->plot();
|
|
m_gridLayout->addWidget(m_techPlot, 1, 1);
|
|
m_gridLayout->addWidget(m_techPlot, 1, 1);
|
|
} else {
|
|
} else {
|
|
@@ -415,7 +417,7 @@ void EvalReportWidget::showTechScorePlot()
|
|
}
|
|
}
|
|
|
|
|
|
m_techPie = new CustomPieChart("", tagList, dataList, colorList);
|
|
m_techPie = new CustomPieChart("", tagList, dataList, colorList);
|
|
- m_techPie->setFixedSize(600, 600);
|
|
|
|
|
|
+ m_techPie->setFixedSize(kFigureSize);
|
|
m_gridLayout->addWidget(m_techPie, 1, 1);
|
|
m_gridLayout->addWidget(m_techPie, 1, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -491,7 +493,7 @@ void EvalReportWidget::showSchemeScorePlot()
|
|
if (m_schemeCombo->currentIndex() < 5) {
|
|
if (m_schemeCombo->currentIndex() < 5) {
|
|
PlotView::PlotType type = (PlotView::PlotType)m_schemeCombo->currentIndex();
|
|
PlotView::PlotType type = (PlotView::PlotType)m_schemeCombo->currentIndex();
|
|
m_schemePlot = new PlotView(type, values, "", this);
|
|
m_schemePlot = new PlotView(type, values, "", this);
|
|
- m_schemePlot->setFixedSize(600, 600);
|
|
|
|
|
|
+ m_schemePlot->setFixedSize(kFigureSize);
|
|
m_schemePlot->plot();
|
|
m_schemePlot->plot();
|
|
m_gridLayout->addWidget(m_schemePlot, 3, 1);
|
|
m_gridLayout->addWidget(m_schemePlot, 3, 1);
|
|
} else {
|
|
} else {
|
|
@@ -509,7 +511,7 @@ void EvalReportWidget::showSchemeScorePlot()
|
|
}
|
|
}
|
|
|
|
|
|
m_schemePie = new CustomPieChart("", tagList, dataList, colorList);
|
|
m_schemePie = new CustomPieChart("", tagList, dataList, colorList);
|
|
- m_schemePie->setFixedSize(600, 600);
|
|
|
|
|
|
+ m_schemePie->setFixedSize(kFigureSize);
|
|
m_gridLayout->addWidget(m_schemePie, 3, 1);
|
|
m_gridLayout->addWidget(m_schemePie, 3, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|