1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 16:01:14 -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->zcPosText->setText(QString::number(m_dsdDemod->getDecoder().getZeroCrossingPos()));
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();
ui->formatStatusText->setText(QString(m_formatStatusText));

View File

@ -59,7 +59,16 @@
<property name="spacing">
<number>3</number>
</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>
</property>
<item>
@ -151,7 +160,7 @@
</property>
<property name="minimumSize">
<size>
<width>40</width>
<width>35</width>
<height>0</height>
</size>
</property>
@ -180,13 +189,33 @@
<widget class="QLabel" name="syncText">
<property name="minimumSize">
<size>
<width>80</width>
<width>110</width>
<height>0</height>
</size>
</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">
<string>Synchronized on this frame type</string>
</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">
<string>No Sync______</string>
</property>
@ -730,7 +759,7 @@
</property>
<property name="font">
<font>
<family>Monospace</family>
<family>Courier</family>
<pointsize>9</pointsize>
</font>
</property>
@ -784,7 +813,16 @@
<string>Discriminator Scope</string>
</property>
<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>
</property>
<item>