[vlc-devel] commit: paintEvent is not useful anymore ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Aug 13 18:07:54 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 13 19:07:23 2009 +0300| [09310519c4563642849f7c5ac0e01fa3de5d934e] | committer: Rémi Denis-Courmont 

paintEvent is not useful anymore

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09310519c4563642849f7c5ac0e01fa3de5d934e
---

 modules/gui/qt4/components/interface_widgets.cpp |    8 --------
 modules/gui/qt4/components/interface_widgets.hpp |    2 --
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 5fd9f04..c0369d1 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -80,14 +80,6 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
     setLayout( layout );
 }
 
-void VideoWidget::paintEvent(QPaintEvent *ev)
-{
-    QFrame::paintEvent(ev);
-#ifdef Q_WS_X11
-    XFlush( QX11Info::display() );
-#endif
-}
-
 VideoWidget::~VideoWidget()
 {
     /* Ensure we are not leaking the video output. This would crash. */
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index af894fe..32e5e32 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -72,8 +72,6 @@ protected:
         return NULL;
     }
 
-    virtual void paintEvent(QPaintEvent *);
-
 private:
     intf_thread_t *p_intf;
 




More information about the vlc-devel mailing list