1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

Use font from UI definition in GLScope and GLSpectrum. Use smaller font (8pt). Time offset in cents instead of mills

This commit is contained in:
f4exb
2015-07-07 02:50:26 +02:00
parent 8924be1a31
commit 133e072b19
7 changed files with 36 additions and 20 deletions
+2
View File
@@ -1156,6 +1156,7 @@ void GLSpectrum::applyChanges()
{
QPainter painter(&m_leftMarginPixmap);
painter.setPen(QColor(0xf0, 0xf0, 0xff));
painter.setFont(font());
const ScaleEngine::TickList* tickList;
const ScaleEngine::Tick* tick;
if(m_displayWaterfall) {
@@ -1199,6 +1200,7 @@ void GLSpectrum::applyChanges()
painter.setBrush(Qt::transparent);
painter.drawRect(leftMargin, 0, width() - leftMargin, frequencyScaleHeight);
painter.setPen(QColor(0xf0, 0xf0, 0xff));
painter.setFont(font());
const ScaleEngine::TickList* tickList = &m_frequencyScale.getTickList();
const ScaleEngine::Tick* tick;
for(int i = 0; i < tickList->count(); i++) {