mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix FullScreen Crash on Mac
When building with the latest Xcode their is a conflict between the QtMacSegmentedButton cocoa container and the same declared in QtMacVideoWindow. This patch removes QtMacSegmentedButton since we do not use it. There appears to be a container in 4.7 anyway so we no longer declare our own. Video and FullScreen are fully operational now on 10.6 or higher using 4.7.4 or higher of QT.
This commit is contained in:
@@ -181,9 +181,6 @@ MediaHelper::listMedia(QDir dir)
|
||||
return returning;
|
||||
}
|
||||
|
||||
#include "QtMacSegmentedButton.h"
|
||||
static CocoaInitializer cocoaInitializer;
|
||||
|
||||
QtMacMovieView::QtMacMovieView (QWidget *parent) : QMacCocoaViewContainer (0, parent)
|
||||
{
|
||||
NSRect frame;
|
||||
|
||||
@@ -124,8 +124,8 @@ qwt3d {
|
||||
# Lion fullscreen playback
|
||||
macx {
|
||||
LIBS += -lobjc -framework Carbon -framework IOKit -framework AppKit -framework QTKit
|
||||
HEADERS += QtMacSegmentedButton.h QtMacVideoWindow.h LionFullScreen.h
|
||||
OBJECTIVE_SOURCES += QtMacSegmentedButton.mm QtMacVideoWindow.mm LionFullScreen.mm
|
||||
HEADERS += QtMacVideoWindow.h LionFullScreen.h
|
||||
OBJECTIVE_SOURCES += QtMacVideoWindow.mm LionFullScreen.mm
|
||||
} else {
|
||||
# not a mac? then F12 to toggle full screen using
|
||||
# standard QT showFullScreen / showNormal
|
||||
|
||||
Reference in New Issue
Block a user