Commit e4b84859 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Sout: Hide the UDP output options by default, but provide an easy way to activate it.

parent 13b03ef4
...@@ -41,6 +41,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, ...@@ -41,6 +41,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
/* UI stuff */ /* UI stuff */
ui.setupUi( this ); ui.setupUi( this );
ui.UDPEdit->hide(); ui.UDPLabel->hide();
ui.UDPPort->hide(); ui.UDPPortLabel->hide();
/* ADD HERE for new profiles */ /* ADD HERE for new profiles */
#define ADD_PROFILE( name, shortname ) ui.profileBox->addItem( qtr( name ), QVariant( QString( shortname ) ) ); #define ADD_PROFILE( name, shortname ) ui.profileBox->addItem( qtr( name ), QVariant( QString( shortname ) ) );
ADD_PROFILE( "Custom" , "Custom" ) ADD_PROFILE( "Custom" , "Custom" )
......
...@@ -278,33 +278,26 @@ ...@@ -278,33 +278,26 @@
</item> </item>
<item row="5" column="0" > <item row="5" column="0" >
<widget class="QCheckBox" name="UDPOutput" > <widget class="QCheckBox" name="UDPOutput" >
<property name="toolTip" >
<string>_("Using this option is not recommended in most of the cases.")</string>
</property>
<property name="text" > <property name="text" >
<string>UDP</string> <string>_("Prefer UDP over RTP")</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" > <item row="5" column="1" >
<widget class="QLabel" name="UDPLabel" > <widget class="QLabel" name="UDPLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>_("Address")</string> <string>_("Address")</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="2" > <item row="5" column="2" >
<widget class="QLineEdit" name="UDPEdit" > <widget class="QLineEdit" name="UDPEdit" />
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item> </item>
<item row="5" column="3" > <item row="5" column="3" >
<widget class="QLabel" name="UDPPortLabel" > <widget class="QLabel" name="UDPPortLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>_("Port")</string> <string>_("Port")</string>
</property> </property>
...@@ -315,9 +308,6 @@ ...@@ -315,9 +308,6 @@
</item> </item>
<item row="5" column="4" > <item row="5" column="4" >
<widget class="QSpinBox" name="UDPPort" > <widget class="QSpinBox" name="UDPPort" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="maximumSize" > <property name="maximumSize" >
<size> <size>
<width>90</width> <width>90</width>
...@@ -1170,5 +1160,69 @@ ...@@ -1170,5 +1160,69 @@
</hint> </hint>
</hints> </hints>
</connection> </connection>
<connection>
<sender>UDPOutput</sender>
<signal>toggled(bool)</signal>
<receiver>UDPPort</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>98</x>
<y>212</y>
</hint>
<hint type="destinationlabel" >
<x>493</x>
<y>212</y>
</hint>
</hints>
</connection>
<connection>
<sender>UDPOutput</sender>
<signal>toggled(bool)</signal>
<receiver>UDPPortLabel</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>107</x>
<y>212</y>
</hint>
<hint type="destinationlabel" >
<x>396</x>
<y>212</y>
</hint>
</hints>
</connection>
<connection>
<sender>UDPOutput</sender>
<signal>toggled(bool)</signal>
<receiver>UDPLabel</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>107</x>
<y>212</y>
</hint>
<hint type="destinationlabel" >
<x>241</x>
<y>212</y>
</hint>
</hints>
</connection>
<connection>
<sender>UDPOutput</sender>
<signal>toggled(bool)</signal>
<receiver>UDPEdit</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>107</x>
<y>212</y>
</hint>
<hint type="destinationlabel" >
<x>315</x>
<y>212</y>
</hint>
</hints>
</connection>
</connections> </connections>
</ui> </ui>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment