summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoapanel_mac_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-12-03 08:34:04 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-12-03 09:08:38 (GMT)
commit70e69384c0dd34064e6e0d636bfc510ac2b967b7 (patch)
tree10ed8527f87f1169344556cf66797ad9d830c0e8 /src/gui/kernel/qcocoapanel_mac_p.h
parent4feb6d99ff12968e30e1992d2049ff3271467929 (diff)
downloadQt-70e69384c0dd34064e6e0d636bfc510ac2b967b7.zip
Qt-70e69384c0dd34064e6e0d636bfc510ac2b967b7.tar.gz
Qt-70e69384c0dd34064e6e0d636bfc510ac2b967b7.tar.bz2
Cocoa: refactor common code into a shared file
QCocoaWindow and QCocoaPanel has many methods that are implemented _exactly_ the same way. Those methods are just copied/pasted between the classes because of inheritance problems. This is error-prone as bugs tends to be fixed inside one of the classes, but easily forgotten in the other class. This patch refactors out this code into a new file that is simply #included from the two classes. We do this fix for a patch release to ease a couple of fixes that is about to be integrated. Reviewed-by: Prasanth Reviewed-by: Denis
Diffstat (limited to 'src/gui/kernel/qcocoapanel_mac_p.h')
-rw-r--r--src/gui/kernel/qcocoapanel_mac_p.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/kernel/qcocoapanel_mac_p.h b/src/gui/kernel/qcocoapanel_mac_p.h
index d95cd93..69dca1e 100644
--- a/src/gui/kernel/qcocoapanel_mac_p.h
+++ b/src/gui/kernel/qcocoapanel_mac_p.h
@@ -54,12 +54,10 @@
#ifdef QT_MAC_USE_COCOA
#import <Cocoa/Cocoa.h>
-
@interface QT_MANGLE_NAMESPACE(QCocoaPanel) : NSPanel {
bool leftButtonIsRightButton;
}
+ (Class)frameViewClassForStyleMask:(NSUInteger)styleMask;
-
@end
#endif