mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
committed by
Mark Liversedge
parent
3b270b1c15
commit
ca9c176e49
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user