From c786e3f6f918e0918d931e9e2aa23022079d01d4 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 7 May 2018 04:04:57 +0200 Subject: [PATCH] Level meter: make sure text and minor ticks do not collide --- sdrgui/gui/levelmeter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdrgui/gui/levelmeter.cpp b/sdrgui/gui/levelmeter.cpp index 595c874aa..0aae57ea0 100644 --- a/sdrgui/gui/levelmeter.cpp +++ b/sdrgui/gui/levelmeter.cpp @@ -201,14 +201,14 @@ void LevelMeterVU::resized() { if ((tick.textSize > 0) && (tick.textPos > 0)) { - painter.drawText(QPointF(tick.textPos - (tick.textSize/2) - 2, bar.height()/2), tick.text); + painter.drawText(QPointF(tick.textPos - (tick.textSize/2) - 4, bar.height()/2 - 3), tick.text); } painter.drawLine(shiftx(tick.pos, bar.width()), 0, shiftx(scaleTickList[i].pos, bar.width()), bar.height()); } else { - painter.drawLine(tick.pos, bar.height()/4, scaleTickList[i].pos, bar.height()/2); + painter.drawLine(tick.pos, bar.height()/2 - 2, scaleTickList[i].pos, bar.height()/2); } } } @@ -324,14 +324,14 @@ void LevelMeterSignalDB::resized() { if ((tick.textSize > 0) && (tick.textPos > 0)) { - painter.drawText(QPointF(tick.textPos - (tick.textSize/2) - 4, bar.height()/2 - 1), tick.text); + painter.drawText(QPointF(tick.textPos - (tick.textSize/2) - 4, bar.height()/2 - 3), tick.text); } painter.drawLine(shiftx(tick.pos, bar.width()), 0, shiftx(scaleTickList[i].pos,bar.width()), bar.height()); } else { - painter.drawLine(tick.pos, bar.height()/4, scaleTickList[i].pos, bar.height()/2); + painter.drawLine(tick.pos, bar.height()/2 - 2, scaleTickList[i].pos, bar.height()/2); } } }