Commit 733ac09f authored by Rafaël Carré's avatar Rafaël Carré

qt4: uses setMinimumSize from the good thread using signal/slot

parent 2d1afccd
...@@ -55,7 +55,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i ) ...@@ -55,7 +55,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
{ {
vlc_mutex_init( p_intf, &lock ); vlc_mutex_init( p_intf, &lock );
p_vout = NULL; p_vout = NULL;
CONNECT( this, askResize(), this, SetMinSize() );
setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ); setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
} }
...@@ -93,9 +93,15 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y, ...@@ -93,9 +93,15 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
return NULL; return NULL;
} }
p_vout = p_nvout; p_vout = p_nvout;
emit askResize();
return ( void* )winId(); return ( void* )winId();
} }
void VideoWidget::SetMinSize()
{
setMinimumSize( 16, 16 );
}
void VideoWidget::release( void *p_win ) void VideoWidget::release( void *p_win )
{ {
p_vout = NULL; p_vout = NULL;
......
...@@ -62,6 +62,10 @@ private: ...@@ -62,6 +62,10 @@ private:
QWidget *frame; QWidget *frame;
intf_thread_t *p_intf; intf_thread_t *p_intf;
vlc_mutex_t lock; vlc_mutex_t lock;
signals:
void askResize();
private slots:
void SetMinSize();
}; };
/******************** Background Widget ****************/ /******************** Background Widget ****************/
......
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