Commit 37c38958 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: StringListConfigControl: use signals instead of public members.

Fixes combo visibility in open_panel
parent 68c5c803
...@@ -741,8 +741,8 @@ void CaptureOpenPanel::initialize() ...@@ -741,8 +741,8 @@ void CaptureOpenPanel::initialize()
1, 0, 3, 1 ); 1, 0, 3, 1 );
/* dshow CONNECTs */ /* dshow CONNECTs */
CuMRL( vdevDshowW->combo, currentIndexChanged ( int ) ); CuMRL( vdevDshowW, changed() );
CuMRL( adevDshowW->combo, currentIndexChanged ( int ) ); CuMRL( adevDshowW, changed() );
CuMRL( dshowVSizeLine, textChanged( const QString& ) ); CuMRL( dshowVSizeLine, textChanged( const QString& ) );
configList << "dshow-vdev" << "dshow-adev" << "dshow-size"; configList << "dshow-vdev" << "dshow-adev" << "dshow-size";
} }
......
...@@ -457,6 +457,12 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this, ...@@ -457,6 +457,12 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
} }
} }
void StringListConfigControl::comboIndexChanged( int i_index )
{
Q_UNUSED( i_index );
emit changed();
}
void StringListConfigControl::actionRequested( int i_action ) void StringListConfigControl::actionRequested( int i_action )
{ {
/* Supplementary check for boundaries */ /* Supplementary check for boundaries */
...@@ -493,6 +499,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this, ...@@ -493,6 +499,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
void StringListConfigControl::finish(module_config_t *p_module_config ) void StringListConfigControl::finish(module_config_t *p_module_config )
{ {
combo->setEditable( false ); combo->setEditable( false );
CONNECT( combo, currentIndexChanged ( int ), this, comboIndexChanged( int ) );
if(!p_module_config) return; if(!p_module_config) return;
......
...@@ -101,9 +101,10 @@ protected: ...@@ -101,9 +101,10 @@ protected:
vlc_object_t *p_this; vlc_object_t *p_this;
module_config_t *p_item; module_config_t *p_item;
QWidget *widget; QWidget *widget;
signals:
void changed();
#if 0 #if 0
/* You shouldn't use that now..*/ /* You shouldn't use that now..*/
signals:
void Updated(); void Updated();
#endif #endif
}; };
...@@ -471,7 +472,7 @@ private: ...@@ -471,7 +472,7 @@ private:
QLabel *label; QLabel *label;
private slots: private slots:
void actionRequested( int ); void actionRequested( int );
void comboIndexChanged( int );
}; };
void setfillVLCConfigCombo(const char *configname, intf_thread_t *p_intf, void setfillVLCConfigCombo(const char *configname, intf_thread_t *p_intf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment