[vlc-devel] commit: Qt4: apprently fix the embedded video ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jun 22 15:24:43 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun 22 16:25:48 2008 +0300| [19685d00b2e6230a42a52cef095740fe999e8239]
Qt4: apprently fix the embedded video
code from ILEoo (not sure what this actually does)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19685d00b2e6230a42a52cef095740fe999e8239
---
modules/gui/qt4/components/interface_widgets.cpp | 1 +
modules/gui/qt4/components/interface_widgets.hpp | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index d8de952..171ef65 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index f0b6586..efa76ec 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -103,6 +103,11 @@ public slots:
void SetSizing( unsigned int, unsigned int );
protected:
+ virtual QPaintEngine *paintEngine() const
+ {
+ return NULL;
+ }
+
virtual void paintEvent(QPaintEvent *);
};
More information about the vlc-devel
mailing list