]> git.sesse.net Git - vlc/commitdiff
Qt: Add the hotkeys-mousewheel configuration to simple preferences.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 Feb 2009 20:39:47 +0000 (21:39 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 23 Feb 2009 20:47:03 +0000 (21:47 +0100)
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/simple_preferences.cpp

index 1adcb1c81f6b002b52f685d80e1272467bf146bd..036ecc9ddbb4fb1219a41a93beb5a6c8e7c1297b 100644 (file)
@@ -1164,7 +1164,7 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
     gLayout->addWidget( shortcutValue, 3, 1, 1, 2 );
     gLayout->addWidget( setButton, 3, 3, 1, 1 );
 
-    l->addWidget( keyContainer, line, 0, 1, 2 );
+    l->addWidget( keyContainer, line, 0, 1, -1 );
 
     CONNECT( clearButton, clicked(), shortcutValue, clear() );
     CONNECT( clearButton, clicked(), this, setTheKey() );
index f8e4a1704daff4830b87df2f233da3aab54bb98c..9281a64b1a82a9e699dcd5b76d66ebc20b71cc6e 100644 (file)
@@ -552,10 +552,15 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             panel->setLayout( gLayout );
             int line = 0;
 
+            panel_label->setText( qtr( "Configure Hotkeys" ) );
             control = new KeySelectorControl( VLC_OBJECT(p_intf), p_config ,
                                                 this, gLayout, line );
+            controls.append( control );
 
-            panel_label->setText( qtr( "Configure Hotkeys" ) );
+            line++;
+            p_config = config_FindConfig( VLC_OBJECT(p_intf), "hotkeys-mousewheel-mode" );
+            control = new IntegerListConfigControl( VLC_OBJECT(p_intf),
+                    p_config, false, this, gLayout, line );
             controls.append( control );
 
             break;