QNSPanel must be a NSPanel and not a QNSWindow
subclass.

Change-Id: I1de31e147757824610f4aabc0ef66ae3906dc0f6
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
Morten Sorvig 2011-11-10 09:36:34 +01:00 committed by Qt by Nokia
parent 582bb9e467
commit 95c007e1f5
2 changed files with 7 additions and 2 deletions

View File

@ -60,10 +60,10 @@ QT_BEGIN_NAMESPACE
@end
@interface QNSPanel : QNSWindow {
@interface QNSPanel : NSPanel {
}
- (BOOL)canBecomeKeyWindow;
@end
class QCocoaWindow : public QPlatformWindow

View File

@ -69,6 +69,11 @@
@implementation QNSPanel
- (BOOL)canBecomeKeyWindow
{
return YES;
}
@end
QCocoaWindow::QCocoaWindow(QWindow *tlw)