]> git.sesse.net Git - vlc/commitdiff
Qt4: apprently fix the embedded video
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 22 Jun 2008 13:25:48 +0000 (16:25 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 22 Jun 2008 13:26:16 +0000 (16:26 +0300)
code from ILEoo (not sure what this actually does)

modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

index d8de95265ffb03e21d2b717ddde487d15b933967..171ef656de6ca0bdb0c565870df71bfc10b4efba 100644 (file)
@@ -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::Inactive, QPalette::Window , Qt::black );
     setPalette( plt );
+    setAttribute( Qt::WA_PaintOnScreen, true );
 
     /* The core can ask through a callback to show the video.
      * NOTE: We need to block the video output core until the window handle
index f0b6586d125716541c197c74275ea85ef6f90951..efa76ec7898e51674cdd0afc30cfac7d4d1e241d 100644 (file)
@@ -103,6 +103,11 @@ public slots:
     void SetSizing( unsigned int, unsigned int );
 
 protected:
+    virtual QPaintEngine *paintEngine() const
+    {
+        return NULL;
+    }
+
     virtual void paintEvent(QPaintEvent *);
 };