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

Qt4: apprently fix the embedded video

code from ILEoo (not sure what this actually does)
parent ace8caef
...@@ -73,6 +73,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i ) ...@@ -73,6 +73,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
plt.setColor( QPalette::Active, QPalette::Window , Qt::black ); plt.setColor( QPalette::Active, QPalette::Window , Qt::black );
plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black ); plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black );
setPalette( plt ); setPalette( plt );
setAttribute( Qt::WA_PaintOnScreen, true );
/* The core can ask through a callback to show the video. /* The core can ask through a callback to show the video.
* NOTE: We need to block the video output core until the window handle * NOTE: We need to block the video output core until the window handle
......
...@@ -103,6 +103,11 @@ public slots: ...@@ -103,6 +103,11 @@ public slots:
void SetSizing( unsigned int, unsigned int ); void SetSizing( unsigned int, unsigned int );
protected: protected:
virtual QPaintEngine *paintEngine() const
{
return NULL;
}
virtual void paintEvent(QPaintEvent *); virtual void paintEvent(QPaintEvent *);
}; };
......
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