添加主控单元过滤
This commit is contained in:
@ -105,6 +105,9 @@ bool MainWindow::inspectionData() {
|
||||
if (ui->jd4->isChecked()) {
|
||||
jd.append(3);
|
||||
}
|
||||
if (ui->mainCtrl->isChecked()) {
|
||||
jd.append(4);
|
||||
}
|
||||
//判断基带是否为空
|
||||
if (jd.isEmpty()) {
|
||||
QMessageBox::warning(this, "警告", "请至少选择一个基带");
|
||||
@ -181,7 +184,12 @@ void MainWindow::setPlotView(int jd, bool isNum, bool isTime) {
|
||||
//标题
|
||||
QCPTextElement *m_title;
|
||||
qCustomPlot->plotLayout()->insertRow(0);
|
||||
m_title = new QCPTextElement(qCustomPlot, QString("基带 %1").arg(jd + 1));
|
||||
if (jd==4){
|
||||
m_title = new QCPTextElement(qCustomPlot, "主控单元");
|
||||
}
|
||||
else{
|
||||
m_title = new QCPTextElement(qCustomPlot, QString("基带 %1").arg(jd + 1));
|
||||
}
|
||||
qCustomPlot->plotLayout()->addElement(0, 0, m_title);
|
||||
|
||||
// X轴
|
||||
|
Reference in New Issue
Block a user