Commit ae514657 authored by Antoine Cellerier's avatar Antoine Cellerier

Automatically refresh the v4l2 extended panel on focus.

parent 02032094
......@@ -577,6 +577,12 @@ ExtV4l2::~ExtV4l2()
delete box;
}
void ExtV4l2::showEvent( QShowEvent *event )
{
QWidget::showEvent( event );
Refresh();
}
void ExtV4l2::Refresh( void )
{
vlc_object_t *p_obj = (vlc_object_t*)vlc_object_find_name( p_intf, "v4l2", FIND_ANYWHERE );
......@@ -620,7 +626,7 @@ void ExtV4l2::Refresh( void )
case VLC_VAR_INTEGER:
{
QLabel *label = new QLabel( psz_label, box );
QHBoxLayout *hlayout = new QHBoxLayout( box );
QHBoxLayout *hlayout = new QHBoxLayout();
hlayout->addWidget( label );
int i_val = var_GetInteger( p_obj, psz_var );
if( i_type & VLC_VAR_HASCHOICE )
......
......@@ -63,6 +63,8 @@ public:
ExtV4l2( intf_thread_t *, QWidget * );
virtual ~ExtV4l2();
virtual void showEvent( QShowEvent *event );
private:
intf_thread_t *p_intf;
Ui::ExtV4l2Widget ui;
......
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