fix: 通道显示CH1~CH16(从1开始)

This commit is contained in:
iorebuild
2026-04-30 13:36:32 +08:00
parent cd8a7273f1
commit 886985963f

View File

@@ -391,7 +391,7 @@ void PlotWidget::drawLegend(QPainter &painter)
} }
// 通道名 // 通道名
QString label = QString("ch%1").arg(ch); QString label = QString("CH%1").arg(ch+1);
painter.setPen(m_channelVisible[ch] ? m_textColor : QColor("#555555")); painter.setPen(m_channelVisible[ch] ? m_textColor : QColor("#555555"));
painter.drawText(QRect(legendX + 16, y, 50, itemHeight), painter.drawText(QRect(legendX + 16, y, 50, itemHeight),
Qt::AlignLeft | Qt::AlignVCenter, label); Qt::AlignLeft | Qt::AlignVCenter, label);