1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 08:28:36 -05:00

DSD demod plugin: make the frame type display the same as the format status text display

This commit is contained in:
Edouard Griffiths 2016-08-25 13:58:52 +02:00
parent a6782a2780
commit faca037685
2 changed files with 53 additions and 6 deletions

View File

@ -519,7 +519,16 @@ void DSDDemodGUI::tick()
ui->inCarrierPosText->setText(QString::number(m_dsdDemod->getDecoder().getCarrierPos())); ui->inCarrierPosText->setText(QString::number(m_dsdDemod->getDecoder().getCarrierPos()));
ui->zcPosText->setText(QString::number(m_dsdDemod->getDecoder().getZeroCrossingPos())); ui->zcPosText->setText(QString::number(m_dsdDemod->getDecoder().getZeroCrossingPos()));
ui->symbolSyncQualityText->setText(QString::number(m_dsdDemod->getDecoder().getSymbolSyncQuality())); ui->symbolSyncQualityText->setText(QString::number(m_dsdDemod->getDecoder().getSymbolSyncQuality()));
ui->syncText->setText(QString(m_dsdDemod->getDecoder().getFrameTypeText()));
const char *frameTypeText = m_dsdDemod->getDecoder().getFrameTypeText();
if (frameTypeText[0] == '\0') {
ui->syncText->setStyleSheet("QLabel { background:rgb(53,53,53); }"); // turn off background
} else {
ui->syncText->setStyleSheet("QLabel { background:rgb(37,53,39); }"); // turn on background
}
ui->syncText->setText(QString(frameTypeText));
formatStatusText(); formatStatusText();
ui->formatStatusText->setText(QString(m_formatStatusText)); ui->formatStatusText->setText(QString(m_formatStatusText));

View File

@ -59,7 +59,16 @@
<property name="spacing"> <property name="spacing">
<number>3</number> <number>3</number>
</property> </property>
<property name="margin"> <property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number> <number>2</number>
</property> </property>
<item> <item>
@ -151,7 +160,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>40</width> <width>35</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -180,13 +189,33 @@
<widget class="QLabel" name="syncText"> <widget class="QLabel" name="syncText">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>80</width> <width>110</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>25</height>
</size>
</property>
<property name="font">
<font>
<family>Courier</family>
</font>
</property>
<property name="toolTip"> <property name="toolTip">
<string>Synchronized on this frame type</string> <string>Synchronized on this frame type</string>
</property> </property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="text"> <property name="text">
<string>No Sync______</string> <string>No Sync______</string>
</property> </property>
@ -730,7 +759,7 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>Monospace</family> <family>Courier</family>
<pointsize>9</pointsize> <pointsize>9</pointsize>
</font> </font>
</property> </property>
@ -784,7 +813,16 @@
<string>Discriminator Scope</string> <string>Discriminator Scope</string>
</property> </property>
<layout class="QVBoxLayout" name="scopeContainer"> <layout class="QVBoxLayout" name="scopeContainer">
<property name="margin"> <property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number> <number>2</number>
</property> </property>
<item> <item>