[vlc-devel] commit: Break compilation on Qt4.2 (Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Jun 25 20:34:31 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 25 11:35:55 2008 -0700| [3c68fe377b6fc76292e5bcf847325432044aac54]
Break compilation on Qt4.2
Man QEventLoop and man QxtSignalWait can help fix that.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c68fe377b6fc76292e5bcf847325432044aac54
---
modules/gui/qt4/components/interface_widgets.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 1efa08e..710cc55 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -75,9 +75,17 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
setAttribute( Qt::WA_PaintOnScreen, true );
/* The core can ask through a callback to show the video. */
+#if HAS_QT43
connect( this, SIGNAL(askVideoWidgetToShow( unsigned int, unsigned int)),
this, SLOT(SetSizing(unsigned int, unsigned int )),
Qt::BlockingQueuedConnection );
+#else
+#error This is broken. Fix it with a QEventLoop with a processEvents ()
+ connect( this, SIGNAL(askVideoWidgetToShow( unsigned int, unsigned int)),
+ this, SLOT(SetSizing(unsigned int, unsigned int )) );
+#endif
+
+
}
void VideoWidget::paintEvent(QPaintEvent *ev)
More information about the vlc-devel
mailing list