Fix QTKit Video Playback on QT 4.8 RC

QT-BUG 22574 suggests there is a problem with the
QMacCocoaContainer on 4.8 RC 0. This is a quick workaround
for those building against the 4.8 release candidate.
This commit is contained in:
Mark Liversedge
2012-01-12 15:17:07 +00:00
committed by Mark Liversedge
parent 3b270b1c15
commit ca9c176e49

View File

@@ -193,6 +193,10 @@ MediaHelper::listMedia(QDir dir)
QtMacMovieView::QtMacMovieView (QWidget *parent) : QMacCocoaViewContainer (0, parent)
{
#if QT_VERSION >= 0x040800 // see QT-BUG 22574, QMacCocoaContainer on 4.8 is "broken"
setAttribute(Qt::WA_NativeWindow);
#endif
NSRect frame;
// allocate the player
player = [[QTMovieView alloc] initWithFrame:frame];