Commit fb6afbc8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: only the actual video "needs" to turn off compositing

parent 1c201d48
...@@ -75,11 +75,6 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i ) ...@@ -75,11 +75,6 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
/* Set the policy to expand in both directions */ /* Set the policy to expand in both directions */
// setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); // setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
/* Indicates that the widget wants to draw directly onto the screen.
Widgets with this attribute set do not participate in composition
management */
setAttribute( Qt::WA_PaintOnScreen, true );
layout = new QHBoxLayout( this ); layout = new QHBoxLayout( this );
layout->setContentsMargins( 0, 0, 0, 0 ); layout->setContentsMargins( 0, 0, 0, 0 );
setLayout( layout ); setLayout( layout );
...@@ -136,6 +131,9 @@ WId VideoWidget::request( int *pi_x, int *pi_y, ...@@ -136,6 +131,9 @@ WId VideoWidget::request( int *pi_x, int *pi_y,
plt.setColor( QPalette::Window, Qt::black ); plt.setColor( QPalette::Window, Qt::black );
stable->setPalette( plt ); stable->setPalette( plt );
stable->setAutoFillBackground(true); stable->setAutoFillBackground(true);
/* Indicates that the widget wants to draw directly onto the screen.
Widgets with this attribute set do not participate in composition
management */
stable->setAttribute( Qt::WA_PaintOnScreen, true ); stable->setAttribute( Qt::WA_PaintOnScreen, true );
innerLayout->addWidget( stable ); innerLayout->addWidget( stable );
......
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