SDRdaemonFEC: GUI refactoring (3)

pull/60/head
f4exb 2017-06-08 23:56:10 +02:00
rodzic 860048a1d1
commit a144b200fc
2 zmienionych plików z 33 dodań i 16 usunięć

Wyświetl plik

@ -557,10 +557,16 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>110</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>110</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip"> <property name="toolTip">
<string>Local data connection IP address</string> <string>Local data connection IP address</string>
</property> </property>
@ -587,6 +593,18 @@
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </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"> <property name="toolTip">
<string>Local data connection port</string> <string>Local data connection port</string>
</property> </property>
@ -610,6 +628,18 @@
</item> </item>
<item> <item>
<widget class="QLineEdit" name="controlPort"> <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"> <property name="toolTip">
<string>Remote control port</string> <string>Remote control port</string>
</property> </property>
@ -653,19 +683,6 @@
</property> </property>
</widget> </widget>
</item> </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> </layout>
</item> </item>
<item> <item>

Wyświetl plik

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