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()
1, 0, 3, 1 );
/* dshow CONNECTs */
CuMRL( vdevDshowW->combo, currentIndexChanged ( int ) );
CuMRL( adevDshowW->combo, currentIndexChanged ( int ) );
CuMRL( vdevDshowW, changed() );
CuMRL( adevDshowW, changed() );
CuMRL( dshowVSizeLine, textChanged( const QString& ) );
configList << "dshow-vdev" << "dshow-adev" << "dshow-size";
}
......
......@@ -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 )
{
/* Supplementary check for boundaries */
......@@ -493,6 +499,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
void StringListConfigControl::finish(module_config_t *p_module_config )
{
combo->setEditable( false );
CONNECT( combo, currentIndexChanged ( int ), this, comboIndexChanged( int ) );
if(!p_module_config) return;
......
......@@ -101,9 +101,10 @@ protected:
vlc_object_t *p_this;
module_config_t *p_item;
QWidget *widget;
signals:
void changed();
#if 0
/* You shouldn't use that now..*/
signals:
void Updated();
#endif
};
......@@ -471,7 +472,7 @@ private:
QLabel *label;
private slots:
void actionRequested( int );
void comboIndexChanged( int );
};
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