mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-22 09:31:10 -05: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:
parent
8924be1a31
commit
133e072b19
@ -373,7 +373,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>Courier</family>
|
<family>Monospace</family>
|
||||||
<pointsize>8</pointsize>
|
<pointsize>8</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
@ -422,7 +422,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>Courier</family>
|
<family>Monospace</family>
|
||||||
<pointsize>8</pointsize>
|
<pointsize>8</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
@ -435,6 +435,12 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>GLScope</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>gui/glscope.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>GLSpectrum</class>
|
<class>GLSpectrum</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
@ -459,12 +465,6 @@
|
|||||||
<header>gui/valuedial.h</header>
|
<header>gui/valuedial.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>GLScope</class>
|
|
||||||
<extends>QWidget</extends>
|
|
||||||
<header>gui/glscope.h</header>
|
|
||||||
<container>1</container>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>GLScopeGUI</class>
|
<class>GLScopeGUI</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
|
@ -298,6 +298,12 @@
|
|||||||
<height>250</height>
|
<height>250</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Monospace</family>
|
||||||
|
<pointsize>8</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -538,6 +538,7 @@ void GLScope::applyConfig()
|
|||||||
m_left1ScalePixmap.fill(Qt::black);
|
m_left1ScalePixmap.fill(Qt::black);
|
||||||
QPainter painter(&m_left1ScalePixmap);
|
QPainter painter(&m_left1ScalePixmap);
|
||||||
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
||||||
|
painter.setFont(font());
|
||||||
const ScaleEngine::TickList* tickList;
|
const ScaleEngine::TickList* tickList;
|
||||||
const ScaleEngine::Tick* tick;
|
const ScaleEngine::Tick* tick;
|
||||||
tickList = &m_powerScale.getTickList();
|
tickList = &m_powerScale.getTickList();
|
||||||
@ -604,6 +605,7 @@ void GLScope::applyConfig()
|
|||||||
m_left1ScalePixmap.fill(Qt::black);
|
m_left1ScalePixmap.fill(Qt::black);
|
||||||
QPainter painter(&m_left1ScalePixmap);
|
QPainter painter(&m_left1ScalePixmap);
|
||||||
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
||||||
|
painter.setFont(font());
|
||||||
const ScaleEngine::TickList* tickList;
|
const ScaleEngine::TickList* tickList;
|
||||||
const ScaleEngine::Tick* tick;
|
const ScaleEngine::Tick* tick;
|
||||||
tickList = &m_powerScale.getTickList();
|
tickList = &m_powerScale.getTickList();
|
||||||
|
@ -173,8 +173,8 @@ void GLScopeGUI::on_time_valueChanged(int value)
|
|||||||
void GLScopeGUI::on_timeOfs_valueChanged(int value)
|
void GLScopeGUI::on_timeOfs_valueChanged(int value)
|
||||||
{
|
{
|
||||||
m_timeOffset = value;
|
m_timeOffset = value;
|
||||||
ui->timeOfsText->setText(tr("%1").arg(value/1000.0, 0, 'f', 3));
|
ui->timeOfsText->setText(tr("%1").arg(value/100.0, 0, 'f', 2));
|
||||||
m_glScope->setTimeOfsProMill(value);
|
m_glScope->setTimeOfsProMill(value*10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLScopeGUI::on_dataMode_currentIndexChanged(int index)
|
void GLScopeGUI::on_dataMode_currentIndexChanged(int index)
|
||||||
|
@ -201,7 +201,7 @@
|
|||||||
<number>100</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="pageStep">
|
<property name="pageStep">
|
||||||
<number>5</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -251,10 +251,10 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>1000</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="pageStep">
|
<property name="pageStep">
|
||||||
<number>10</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -369,10 +369,10 @@
|
|||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="tickPosition">
|
<property name="tickPosition">
|
||||||
<enum>QSlider::TicksBelow</enum>
|
<enum>QSlider::NoTicks</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="tickInterval">
|
<property name="tickInterval">
|
||||||
<number>1</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -1156,6 +1156,7 @@ void GLSpectrum::applyChanges()
|
|||||||
{
|
{
|
||||||
QPainter painter(&m_leftMarginPixmap);
|
QPainter painter(&m_leftMarginPixmap);
|
||||||
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
||||||
|
painter.setFont(font());
|
||||||
const ScaleEngine::TickList* tickList;
|
const ScaleEngine::TickList* tickList;
|
||||||
const ScaleEngine::Tick* tick;
|
const ScaleEngine::Tick* tick;
|
||||||
if(m_displayWaterfall) {
|
if(m_displayWaterfall) {
|
||||||
@ -1199,6 +1200,7 @@ void GLSpectrum::applyChanges()
|
|||||||
painter.setBrush(Qt::transparent);
|
painter.setBrush(Qt::transparent);
|
||||||
painter.drawRect(leftMargin, 0, width() - leftMargin, frequencyScaleHeight);
|
painter.drawRect(leftMargin, 0, width() - leftMargin, frequencyScaleHeight);
|
||||||
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
painter.setPen(QColor(0xf0, 0xf0, 0xff));
|
||||||
|
painter.setFont(font());
|
||||||
const ScaleEngine::TickList* tickList = &m_frequencyScale.getTickList();
|
const ScaleEngine::TickList* tickList = &m_frequencyScale.getTickList();
|
||||||
const ScaleEngine::Tick* tick;
|
const ScaleEngine::Tick* tick;
|
||||||
for(int i = 0; i < tickList->count(); i++) {
|
for(int i = 0; i < tickList->count(); i++) {
|
||||||
|
@ -42,6 +42,12 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Monospace</family>
|
||||||
|
<pointsize>8</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -477,11 +483,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
|
||||||
<class>ButtonSwitch</class>
|
|
||||||
<extends>QToolButton</extends>
|
|
||||||
<header>gui/buttonswitch.h</header>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>GLSpectrum</class>
|
<class>GLSpectrum</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
@ -494,6 +495,11 @@
|
|||||||
<header>gui/glspectrumgui.h</header>
|
<header>gui/glspectrumgui.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>ButtonSwitch</class>
|
||||||
|
<extends>QToolButton</extends>
|
||||||
|
<header>gui/buttonswitch.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>ChannelWindow</class>
|
<class>ChannelWindow</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
|
Loading…
Reference in New Issue
Block a user