mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-28 04:54:13 -04:00
Level meters: fixed text position and make sure appropriate font is used
This commit is contained in:
@@ -180,6 +180,7 @@ void LevelMeterVU::resized()
|
||||
|
||||
// 100% full height white line
|
||||
painter.setPen(Qt::white);
|
||||
painter.setFont(font());
|
||||
// painter.drawLine(0.75*bar.width(), 0, 0.75*bar.width(), bar.height());
|
||||
|
||||
m_scaleEngine.setSize(0.75*bar.width());
|
||||
@@ -323,7 +324,7 @@ void LevelMeterSignalDB::resized()
|
||||
{
|
||||
if ((tick.textSize > 0) && (tick.textPos > 0))
|
||||
{
|
||||
painter.drawText(QPointF(tick.textPos - (tick.textSize/2) - 2, bar.height()/2 - 1), tick.text);
|
||||
painter.drawText(QPointF(tick.textPos - (tick.textSize/2) - 4, bar.height()/2 - 1), tick.text);
|
||||
}
|
||||
|
||||
painter.drawLine(shiftx(tick.pos, bar.width()), 0, shiftx(scaleTickList[i].pos,bar.width()), bar.height());
|
||||
|
||||
Reference in New Issue
Block a user