diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-23 14:42:32 +0200 |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-23 14:44:08 +0200 |
commit | f65ed7b51a573dd8429feecc19c7abe8a0a36114 (patch) | |
tree | 5ce70bc3ca67573b4a3b07c13e1a8a8be520f4bd /src/gui/kernel/qsound_mac.mm | |
parent | 3464a05a94c4e638d91b2151d6aad70f78ea3087 (diff) | |
download | qt4-tools-f65ed7b51a573dd8429feecc19c7abe8a0a36114.tar.gz |
Remove some warnings in the Cocoa build.
After discussing with some of the Objective-C
people I have finally got a fair number of the
warnings to disappear in both 10.5 and 10.6. I
also took the opportunity to remove a bunch of
other warnings.
Reviewed by: Morten Sørvig
Diffstat (limited to 'src/gui/kernel/qsound_mac.mm')
-rw-r--r-- | src/gui/kernel/qsound_mac.mm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/kernel/qsound_mac.mm b/src/gui/kernel/qsound_mac.mm index 43965d1c0a..a8ee5162f0 100644 --- a/src/gui/kernel/qsound_mac.mm +++ b/src/gui/kernel/qsound_mac.mm @@ -80,14 +80,19 @@ protected: QT_END_NAMESPACE +#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5 +@protocol NSSoundDelegate <NSObject> +-(void)sound:(NSSound *)sound didFinishPlaying:(BOOL)aBool; +@end +#endif + QT_USE_NAMESPACE -@interface QMacSoundDelegate : NSObject { +@interface QMacSoundDelegate : NSObject<NSSoundDelegate> { QSound *qSound; // may be null. QAuServerMac* server; -} +} -(id)initWithQSound:(QSound*)sound:(QAuServerMac*)server; --(void)sound:(NSSound *)sound didFinishPlaying:(BOOL)aBool; @end @implementation QMacSoundDelegate |