From: Jean-Baptiste Kempf Date: Wed, 25 Jun 2008 18:35:55 +0000 (-0700) Subject: Break compilation on Qt4.2 X-Git-Tag: 0.9.0-test1~121^2~9 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3c68fe377b6fc76292e5bcf847325432044aac54;hp=3d6595b148de9956d99c98215abcb53c9d77baad;p=vlc Break compilation on Qt4.2 Man QEventLoop and man QxtSignalWait can help fix that. --- diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 1efa08efb0..710cc55a72 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)