Commit 608c0306 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Rémi Denis-Courmont

Qt: hide live555 module options when disabled

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 7fcd1c91
...@@ -412,7 +412,16 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -412,7 +412,16 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC_NO_BOOL( "ffmpeg-pp-q", Integer, ui.ppLabel, CONFIG_GENERIC_NO_BOOL( "ffmpeg-pp-q", Integer, ui.ppLabel,
PostProcLevel ); PostProcLevel );
CONFIG_GENERIC( "avi-index", IntegerList, ui.aviLabel, AviRepair ); CONFIG_GENERIC( "avi-index", IntegerList, ui.aviLabel, AviRepair );
CONFIG_GENERIC( "rtsp-tcp", Bool, NULL, RTSP_TCPBox );
/* live555 module prefs */
CONFIG_GENERIC( "rtsp-tcp", Bool, NULL,
live555TransportRTSP_TCPRadio );
if ( !module_exists( "live555" ) )
{
ui.live555TransportRTSP_TCPRadio->hide();
ui.live555TransportHTTPRadio->hide();
ui.live555TransportLabel->hide();
}
#ifdef WIN32 #ifdef WIN32
CONFIG_GENERIC( "prefer-system-codecs", Bool, NULL, systemCodecBox ); CONFIG_GENERIC( "prefer-system-codecs", Bool, NULL, systemCodecBox );
#else #else
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<item row="2" column="1"> <item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QRadioButton" name="HTTP"> <widget class="QRadioButton" name="live555TransportHTTPRadio">
<property name="text"> <property name="text">
<string>HTTP (default)</string> <string>HTTP (default)</string>
</property> </property>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="RTSP_TCPBox"> <widget class="QRadioButton" name="live555TransportRTSP_TCPRadio">
<property name="text"> <property name="text">
<string>RTP over RTSP (TCP)</string> <string>RTP over RTSP (TCP)</string>
</property> </property>
...@@ -179,9 +179,9 @@ ...@@ -179,9 +179,9 @@
</layout> </layout>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="live555TransportLabel">
<property name="text"> <property name="text">
<string>Stream transport</string> <string>Live555 stream transport</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
<tabstop>cachingCombo</tabstop> <tabstop>cachingCombo</tabstop>
<tabstop>PostProcLevel</tabstop> <tabstop>PostProcLevel</tabstop>
<tabstop>AviRepair</tabstop> <tabstop>AviRepair</tabstop>
<tabstop>RTSP_TCPBox</tabstop> <tabstop>live555TransportRTSP_TCPRadio</tabstop>
<tabstop>systemCodecBox</tabstop> <tabstop>systemCodecBox</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
......
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