From dcb4b5e7d2b916e1b6c2fbc13464955c7393299b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 18 Aug 2021 22:01:12 +0200 Subject: macOS: Tweak method argument names in QNSView complex text implementation Pick-to: 6.2 Change-Id: I6a7ec683ffe9c18a89326b3e53b4a907cb9a9512 Reviewed-by: Volker Hilsheimer --- src/plugins/platforms/cocoa/qnsview_complextext.mm | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/plugins/platforms/cocoa/qnsview_complextext.mm') diff --git a/src/plugins/platforms/cocoa/qnsview_complextext.mm b/src/plugins/platforms/cocoa/qnsview_complextext.mm index 4b00a8a54f..35455a2812 100644 --- a/src/plugins/platforms/cocoa/qnsview_complextext.mm +++ b/src/plugins/platforms/cocoa/qnsview_complextext.mm @@ -43,18 +43,18 @@ // ------------- Text insertion ------------- -- (void)insertText:(id)aString replacementRange:(NSRange)replacementRange +- (void)insertText:(id)text replacementRange:(NSRange)replacementRange { - qCDebug(lcQpaKeys).nospace() << "Inserting \"" << aString << "\"" + qCDebug(lcQpaKeys).nospace() << "Inserting \"" << text << "\"" << ", replacing range " << replacementRange; - if (m_sendKeyEvent && m_composingText.isEmpty() && [aString isEqualToString:m_inputSource]) { + if (m_sendKeyEvent && m_composingText.isEmpty() && [text isEqualToString:m_inputSource]) { // don't send input method events for simple text input (let handleKeyEvent send key events instead) return; } - const bool isAttributedString = [aString isKindOfClass:NSAttributedString.class]; - QString commitString = QString::fromNSString(isAttributedString ? [aString string] : aString); + const bool isAttributedString = [text isKindOfClass:NSAttributedString.class]; + QString commitString = QString::fromNSString(isAttributedString ? [text string] : text); QObject *focusObject = m_platformWindow->window()->focusObject(); if (queryInputMethod(focusObject)) { @@ -78,14 +78,14 @@ // ------------- Text composition ------------- -- (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange +- (void)setMarkedText:(id)text selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange { - qCDebug(lcQpaKeys).nospace() << "Marking \"" << aString << "\"" + qCDebug(lcQpaKeys).nospace() << "Marking \"" << text << "\"" << " with selected range " << selectedRange << ", replacing range " << replacementRange; - const bool isAttributedString = [aString isKindOfClass:NSAttributedString.class]; - QString preeditString = QString::fromNSString(isAttributedString ? [aString string] : aString); + const bool isAttributedString = [text isKindOfClass:NSAttributedString.class]; + QString preeditString = QString::fromNSString(isAttributedString ? [text string] : text); QList attrs; attrs<window(); @@ -262,10 +262,10 @@ } } -- (NSUInteger)characterIndexForPoint:(NSPoint)aPoint +- (NSUInteger)characterIndexForPoint:(NSPoint)point { // We don't support cursor movements using mouse while composing. - Q_UNUSED(aPoint); + Q_UNUSED(point); return NSNotFound; } -- cgit v1.2.3