Widgets with this attribute set do not participate in composition
management */
setAttribute( Qt::WA_PaintOnScreen, true );
-
- /* The core can ask through a callback to show the video. */
- connect( this, SIGNAL(askVideoWidgetToShow( unsigned int, unsigned int)),
- this, SLOT(SetSizing(unsigned int, unsigned int )),
- Qt::BlockingQueuedConnection );
}
void VideoWidget::paintEvent(QPaintEvent *ev)
*pi_height = size().height();
}
- emit askVideoWidgetToShow( *pi_width, *pi_height );
if( p_vout )
{
msg_Dbg( p_intf, "embedded video already in use" );
this, SLOT(releaseVideoSlot( void )), Qt::BlockingQueuedConnection );
if( videoWidget )
+ {
CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
videoWidget, SetSizing( unsigned int, unsigned int ) );
+ connect( this, SIGNAL(askVideoToShow( unsigned int, unsigned int)),
+ videoWidget, SLOT(SetSizing(unsigned int, unsigned int )),
+ Qt::BlockingQueuedConnection );
+ }
+
CONNECT( this, askUpdate(), this, doComponentsUpdate() );
/* Size and placement of interface */
else
bgWasVisible = false;
+ /* ask videoWidget to show */
+ emit askVideoToShow( *pi_width, *pi_height );
+
/* Consider the video active now */
videoIsActive = true;
signals:
void askReleaseVideo( );
void askVideoToResize( unsigned int, unsigned int );
+ void askVideoToShow( unsigned int, unsigned int );
void askVideoToToggle();
void askBgWidgetToToggle();
void askUpdate();