+ l->addWidget( combo, line, LAST_COLUMN, Qt::AlignRight );
+ }
+
+ if( p_item->i_action )
+ {
+ QSignalMapper *signalMapper = new QSignalMapper(this);
+
+ /* Some stringLists like Capture listings have action associated */
+ for( int i = 0; i < p_item->i_action; i++ )
+ {
+ QPushButton *button =
+ new QPushButton( qfu( p_item->ppsz_action_text[i] ));
+ CONNECT( button, clicked(), signalMapper, map() );
+ signalMapper->setMapping( button, i );
+ l->addWidget( button, line, LAST_COLUMN - p_item->i_action + i,
+ Qt::AlignRight );
+ }
+ CONNECT( signalMapper, mapped( int ),
+ this, actionRequested( int ) );
+ }
+}
+
+void StringListConfigControl::actionRequested( int i_action )
+{
+ /* Supplementary check for boundaries */
+ if( i_action < 0 || i_action >= p_item->i_action ) return;
+
+ module_config_t *p_module_config = config_FindConfig( p_this, getName() );
+ if(!p_module_config) return;
+
+ vlc_value_t val;
+ val.psz_string =
+ qtu( (combo->itemData( combo->currentIndex() ).toString() ) );
+
+ p_module_config->ppf_action[i_action]( p_this, getName(), val, val, 0 );
+
+ if( p_module_config->b_dirty )
+ {
+ combo->clear();
+ finish( p_module_config, true );
+ p_module_config->b_dirty = false;