1
0
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:
f4exb
2018-05-07 03:38:57 +02:00
parent 4e389d77e1
commit b32330780b
7 changed files with 25 additions and 90 deletions
+2 -1
View File
@@ -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());