]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/complete_preferences.cpp
Qt4 - SPrefs, add an option for saving volume on exit, and fix the displayMode in...
[vlc] / modules / gui / qt4 / components / complete_preferences.cpp
index ce6db230c20e3659b52240608e10d3e1d494dca2..7f209d346ce00ccc601efbd0c0bcc1dd59656e6a 100644 (file)
@@ -20,6 +20,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <QApplication>
 #include <QLabel>
@@ -434,10 +437,10 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             if( box )
             {
                 box->setLayout( boxlayout );
-                layout->addWidget( box, i_line, 0, 1, 2 );
+                layout->addWidget( box, i_line, 0, 1, -1 );
                 i_line++;
             }
-            box = new QGroupBox( qtr(p_item->psz_text) );
+            box = new QGroupBox( qtr( p_item->psz_text ) );
             boxlayout = new QGridLayout();
         }
         /* Only one hotkey control */
@@ -471,7 +474,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
     if( box )
     {
         box->setLayout( boxlayout );
-        layout->addWidget( box, i_line, 0, 1, 2 );
+        layout->addWidget( box, i_line, 0, 1, -1 );
     }
 
     module_Put( p_module );