diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-03-15 17:00:37 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-03-17 14:41:48 +0000 |
commit | bbe9bda106f80ecf464e8f8f939df6662f6f7cda (patch) | |
tree | 5b4c7e24e6a0bf278258f21dff869c14468ac872 /src/plugins/platforms/cocoa/qnsview.h | |
parent | 83a1203c3ba05d2425b55ea5d5330567f14e9a08 (diff) |
macOS: Clean up some more Objective-C usage in QNSView implementation
- Format selectors consistently
- Use proper style for init methods
Follow-up to ba871065e0f40e9197fa4ee0ffe76530bb6fca11
Change-Id: I5742e248b83d5955b1d110038dd1b4d79d701fbb
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnsview.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qnsview.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview.h b/src/plugins/platforms/cocoa/qnsview.h index 20191d79ce..89f380b39b 100644 --- a/src/plugins/platforms/cocoa/qnsview.h +++ b/src/plugins/platforms/cocoa/qnsview.h @@ -96,13 +96,13 @@ Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(QNSViewMouseMoveHelper)); - (void)handleFrameStrutMouseEvent:(NSEvent *)theEvent; #ifndef QT_NO_TABLETEVENT -- (bool)handleTabletEvent: (NSEvent *)theEvent; -- (void)tabletPoint: (NSEvent *)theEvent; -- (void)tabletProximity: (NSEvent *)theEvent; +- (bool)handleTabletEvent:(NSEvent *)theEvent; +- (void)tabletPoint:(NSEvent *)theEvent; +- (void)tabletProximity:(NSEvent *)theEvent; #endif -- (int) convertKeyCode : (QChar)keyCode; -+ (Qt::KeyboardModifiers) convertKeyModifiers : (ulong)modifierFlags; +- (int)convertKeyCode:(QChar)keyCode; ++ (Qt::KeyboardModifiers)convertKeyModifiers:(ulong)modifierFlags; - (bool)handleKeyEvent:(NSEvent *)theEvent eventType:(int)eventType; - (void)keyDown:(NSEvent *)theEvent; - (void)keyUp:(NSEvent *)theEvent; |