From 09310519c4563642849f7c5ac0e01fa3de5d934e Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 13 Aug 2009 19:07:23 +0300 Subject: [PATCH] paintEvent is not useful anymore --- modules/gui/qt4/components/interface_widgets.cpp | 8 -------- modules/gui/qt4/components/interface_widgets.hpp | 2 -- 2 files changed, 10 deletions(-) diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 5fd9f04c6f..c0369d1f55 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 af894feffc..32e5e32c2f 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; -- 2.39.5