]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.cpp
Qt4 - Unification of Hotkeys for Sprefs et Adv Preferences.
[vlc] / modules / gui / qt4 / components / preferences_widgets.cpp
index f488406fa7bdecaae16d4b09690502cf5472b7a4..466597d87bed08a7a7bf46e563a976f7e45cf918 100644 (file)
@@ -391,7 +391,7 @@ void StringListConfigControl::actionRequested( int i_action )
     if( i_action < 0 || i_action >= p_item->i_action ) return;
 
     vlc_value_t val;
-    val.psz_string = 
+    val.psz_string =
         qtu( (combo->itemData( combo->currentIndex() ).toString() ) );
 
     p_item->ppf_action[i_action]( p_this, getName(), val, val, 0 );
@@ -982,11 +982,11 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
 
     label = new QLabel(
             qtr( "Select an action to change the associated hotkey") );
-    
+
     /* Deactivated for now
     QLabel *searchLabel = new QLabel( qtr( "Search" ) );
     QLineEdit *actionSearch = new QLineEdit;*/
-    
+
     table = new QTreeWidget;
     table->setColumnCount(2);
     table->headerItem()->setText( 0, qtr( "Action" ) );
@@ -1005,7 +1005,7 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
     gLayout->addWidget( actionSearch, 1, 2, 1, 2 ); */
     gLayout->addWidget( table, 2, 0, 1, 4 );
     gLayout->addWidget( clearButton, 3, 0, 1, 1 );
-    gLayout->addWidget( shortcutValue, 3, 1, 1, 2 ); 
+    gLayout->addWidget( shortcutValue, 3, 1, 1, 2 );
     gLayout->addWidget( setButton, 3, 3, 1, 1 );
 
     if( !l ) /* This shouldn't happen */
@@ -1016,7 +1016,7 @@ KeySelectorControl::KeySelectorControl( vlc_object_t *_p_this,
     }
     else
     {
-        l->addWidget( keyContainer, 0, 0, 1, 2 );
+        l->addWidget( keyContainer, line, 0, 1, 2 );
     }
     CONNECT( clearButton, clicked(), shortcutValue, clear() );
     BUTTONACT( setButton, setTheKey() );
@@ -1068,7 +1068,7 @@ void KeySelectorControl::selectKey( QTreeWidgetItem *keyItem )
 {
     /* This happens when triggered by ClickEater */
     if( keyItem == NULL ) keyItem = table->currentItem();
-    
+
     /* This can happen when nothing is selected on the treeView
        and the shortcutValue is clicked */
     if( !keyItem ) return;
@@ -1121,7 +1121,7 @@ KeyInputDialog::KeyInputDialog( QList<module_config_t*>& _values,
     values = _values;
     conflicts = false;
     keyToChange = _keyToChange;
-    
+
     setWindowTitle( qtr( "Hotkey for " ) + qfu( keyToChange)  );
 
     QVBoxLayout *l = new QVBoxLayout( this );
@@ -1137,7 +1137,7 @@ KeyInputDialog::KeyInputDialog( QList<module_config_t*>& _values,
     buttonBox->addButton( cancel, QDialogButtonBox::RejectRole );
 
     l->addWidget( buttonBox );
-    
+
     CONNECT( buttonBox, accepted(), this, accept() );
     CONNECT( buttonBox, rejected(), this, reject() );
 }