fix: 通道显示CH1~CH16(从1开始)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user