Compilation fix for Qt4.2
authorRémi Duraffort <ivoire@videolan.org>
Fri, 1 Feb 2008 18:19:19 +0000 (18:19 +0000)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 1 Feb 2008 18:19:19 +0000 (18:19 +0000)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_audio.ui

index d3aff09..533fc8b 100644 (file)
@@ -261,6 +261,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             optionWidgets.append( ui.fileControl );
             optionWidgets.append( ui.outputModule );
             optionWidgets.append( ui.volNormBox );
+            /*Little mofification of ui.volumeValue to compile with Qt < 4.3 */
+#ifdef QT43
+            ui.volumeValue->setButtonSymbols(QAbstractSpinBox::NoButtons);
+#endif
             optionWidgets.append( ui.volumeValue );
             updateAudioOptions( ui.outputModule->currentIndex() );
 
index fa36853..6f890eb 100644 (file)
@@ -79,9 +79,6 @@
         <property name="readOnly" >
          <bool>true</bool>
         </property>
-        <property name="buttonSymbols" >
-         <enum>QAbstractSpinBox::NoButtons</enum>
-        </property>
         <property name="suffix" >
          <string> %</string>
         </property>
       <item row="1" column="0" colspan="2" >
        <widget class="QWidget" native="1" name="alsaControl" >
         <layout class="QHBoxLayout" >
-         <property name="leftMargin" >
-          <number>0</number>
-         </property>
-         <property name="topMargin" >
-          <number>0</number>
-         </property>
-         <property name="rightMargin" >
-          <number>0</number>
-         </property>
-         <property name="bottomMargin" >
-          <number>0</number>
-         </property>
          <item>
           <widget class="QLabel" name="alsaLabel" >
            <property name="minimumSize" >
       <item row="2" column="0" colspan="2" >
        <widget class="QWidget" native="1" name="DirectXControl" >
         <layout class="QHBoxLayout" >
-         <property name="leftMargin" >
-          <number>0</number>
-         </property>
-         <property name="topMargin" >
-          <number>0</number>
-         </property>
-         <property name="rightMargin" >
-          <number>0</number>
-         </property>
-         <property name="bottomMargin" >
-          <number>0</number>
-         </property>
          <item>
           <widget class="QLabel" name="DirectXLabel" >
            <property name="sizePolicy" >
       <item row="3" column="0" colspan="2" >
        <widget class="QWidget" native="1" name="OSSControl" >
         <layout class="QHBoxLayout" >
-         <property name="leftMargin" >
-          <number>0</number>
-         </property>
-         <property name="topMargin" >
-          <number>0</number>
-         </property>
-         <property name="rightMargin" >
-          <number>0</number>
-         </property>
-         <property name="bottomMargin" >
-          <number>0</number>
-         </property>
          <item>
           <widget class="QLabel" name="OSSLabel" >
            <property name="minimumSize" >
       <item row="4" column="0" colspan="2" >
        <widget class="QWidget" native="1" name="fileControl" >
         <layout class="QHBoxLayout" >
-         <property name="leftMargin" >
-          <number>0</number>
-         </property>
-         <property name="topMargin" >
-          <number>0</number>
-         </property>
-         <property name="rightMargin" >
-          <number>0</number>
-         </property>
-         <property name="bottomMargin" >
-          <number>0</number>
-         </property>
          <item>
           <widget class="QLabel" name="fileLabel" >
            <property name="minimumSize" >