1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04:00

SDRdaemonFEC: GUI refactoring (3)

This commit is contained in:
f4exb 2017-06-08 23:56:10 +02:00
parent 860048a1d1
commit a144b200fc
2 changed files with 33 additions and 16 deletions

View File

@ -557,10 +557,16 @@
</property>
<property name="minimumSize">
<size>
<width>100</width>
<width>110</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>110</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Local data connection IP address</string>
</property>
@ -587,6 +593,18 @@
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Local data connection port</string>
</property>
@ -610,6 +628,18 @@
</item>
<item>
<widget class="QLineEdit" name="controlPort">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Remote control port</string>
</property>
@ -653,19 +683,6 @@
</property>
</widget>
</item>
<item>
<spacer name="iaddressSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>

View File

@ -235,9 +235,9 @@ void SDRdaemonFECUDPHandler::tick()
//framesDecodingStatus = (minNbOriginalBlocks == nbOriginalBlocks ? 2 : (minNbOriginalBlocks < nbOriginalBlocks - nbFECblocks ? 0 : 1));
if (minNbBlocks < nbOriginalBlocks) {
framesDecodingStatus = 1;
} else if (minNbBlocks < nbOriginalBlocks + nbFECblocks) {
framesDecodingStatus = 0;
} else if (minNbBlocks < nbOriginalBlocks + nbFECblocks) {
framesDecodingStatus = 1;
} else {
framesDecodingStatus = 2;
}