]> git.sesse.net Git - vlc/commitdiff
Qt: hide live555 module options when disabled
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 21 Sep 2009 23:19:41 +0000 (01:19 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 25 Sep 2009 18:16:54 +0000 (21:16 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_input.ui

index 866974f70f66ba7dad7d28faabe736c2983c12ec..05d2a10377d8dd7cb2311cb8b1eae59961055813 100644 (file)
@@ -412,7 +412,16 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONFIG_GENERIC_NO_BOOL( "ffmpeg-pp-q", Integer, ui.ppLabel,
                                     PostProcLevel );
             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
             CONFIG_GENERIC( "prefer-system-codecs", Bool, NULL, systemCodecBox );
 #else
index b6cbcdfb2dcdb02d358aa879ea0263608b61f12d..33c7dc67d0919f8d00a0ef053fc5da62b28ded47 100644 (file)
       <item row="2" column="1">
        <layout class="QHBoxLayout" name="horizontalLayout">
         <item>
-         <widget class="QRadioButton" name="HTTP">
+         <widget class="QRadioButton" name="live555TransportHTTPRadio">
           <property name="text">
            <string>HTTP (default)</string>
           </property>
          </widget>
         </item>
         <item>
-         <widget class="QRadioButton" name="RTSP_TCPBox">
+         <widget class="QRadioButton" name="live555TransportRTSP_TCPRadio">
           <property name="text">
            <string>RTP over RTSP (TCP)</string>
           </property>
        </layout>
       </item>
       <item row="2" column="0">
-       <widget class="QLabel" name="label_3">
+       <widget class="QLabel" name="live555TransportLabel">
         <property name="text">
-         <string>Stream transport</string>
+         <string>Live555 stream transport</string>
         </property>
        </widget>
       </item>
   <tabstop>cachingCombo</tabstop>
   <tabstop>PostProcLevel</tabstop>
   <tabstop>AviRepair</tabstop>
-  <tabstop>RTSP_TCPBox</tabstop>
+  <tabstop>live555TransportRTSP_TCPRadio</tabstop>
   <tabstop>systemCodecBox</tabstop>
  </tabstops>
  <resources/>