I can't figure out where the correct place is to submit bugs for the qtmacextras project. I don't see it as a Project option in JIRA nor as a component of the Qt project. It doesn't look like it's in the playground any more so I don't think it belongs in the Qt Playground Projects "project".
For what it's worth, my bug report is that I am unable to compile the qtmacextras library (using the qtmacextras.pro file in the root directory) using OSX 10.6.8. I had to make simple changes to the order of #import statements so that the Cocoa headers are imported before other #include statements. I also had to remove the #import of CoreGraphics in qmacfunctions.mm. I've pasted the diff at the end. Thanks Adam diff --git a/src/macextras/qmacfunctions.mm b/src/macextras/qmacfunctions.mm index ba0e940..cb00169 100644 --- a/src/macextras/qmacfunctions.mm +++ b/src/macextras/qmacfunctions.mm @@ -45,7 +45,9 @@ #include <QPixmap> #include <QUrl> #import <Foundation/Foundation.h> -#import <CoreGraphics/CoreGraphics.h> +#ifdef Q_OS_IOS + #import <CoreGraphics/CoreGraphics.h> +#endif QT_BEGIN_NAMESPACE diff --git a/src/macextras/qmacfunctions_mac.mm b/src/macextras/ qmacfunctions_mac.mm index a78792a..784bad4 100644 --- a/src/macextras/qmacfunctions_mac.mm +++ b/src/macextras/qmacfunctions_mac.mm @@ -39,9 +39,9 @@ ** ****************************************************************************/ +#import <Cocoa/Cocoa.h> #include "qmacfunctions.h" #include "qmacfunctions_p.h" -#import <Cocoa/Cocoa.h> QT_BEGIN_NAMESPACE diff --git a/src/macextras/qmacnativetoolbar.mm b/src/macextras/ qmacnativetoolbar.mm index 659362b..8caddc2 100644 --- a/src/macextras/qmacnativetoolbar.mm +++ b/src/macextras/qmacnativetoolbar.mm @@ -39,6 +39,7 @@ ** ****************************************************************************/ +#import <AppKit/AppKit.h> #include "qmacfunctions.h" #include "qmacnativetoolbar.h" #include "qmactoolbardelegate.h" @@ -58,7 +59,6 @@ #include <QMainWindow> #endif -#import <AppKit/AppKit.h> // from the Apple NSToolbar documentation #define kNSToolbarIconSizeSmall 24 diff --git a/src/macextras/qmacnativewidget.mm b/src/macextras/ qmacnativewidget.mm index b9963ab..305de86 100644 --- a/src/macextras/qmacnativewidget.mm +++ b/src/macextras/qmacnativewidget.mm @@ -39,6 +39,7 @@ ** ****************************************************************************/ +#import <Cocoa/Cocoa.h> #include "qmacnativewidget.h" #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include <QtGui/QWindow> @@ -47,7 +48,6 @@ #endif #include <qdebug.h> -#import <Cocoa/Cocoa.h> /*! \class QMacNativeWidget diff --git a/src/macextras/qmacpasteboardmime.mm b/src/macextras/ qmacpasteboardmime.mm index 777e514..1ad437a 100644 --- a/src/macextras/qmacpasteboardmime.mm +++ b/src/macextras/qmacpasteboardmime.mm @@ -39,12 +39,12 @@ ** ****************************************************************************/ +#include <Cocoa/Cocoa.h> #include "qmacpasteboardmime.h" #include <qpa/qplatformnativeinterface.h> #include <qapplication.h> #include <qlogging.h> -#include <Cocoa/Cocoa.h> QT_BEGIN_NAMESPACE
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest