Commit d75505fa authored by Richard Moe Gustavsen's avatar Richard Moe Gustavsen
Browse files

iOS: silence compiler warning about unimplemented 'selectionRectsForRange'


Implement a dummy method to silence the compiler.
After testing, this method seems to never be called. Which is
good, since the current IM API in Qt have little to offer to resolve
what is being asked. Until a need arise, we just return
an empty array.

Change-Id: I573eb8205a7e635a46d487ae175fb46e3a602001
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Showing with 9 additions and 0 deletions
......@@ -738,6 +738,15 @@
return toCGRect(startRect.united(endRect));
}
- (NSArray *)selectionRectsForRange:(UITextRange *)range
{
Q_UNUSED(range);
// This method is supposed to return a rectangle for each line with selection. Since we don't
// expose an API in Qt/IM for getting this information, and since we never seems to be getting
// a call from UIKit for this, we return an empty array until a need arise.
return [[NSArray new] autorelease];
}
- (CGRect)caretRectForPosition:(UITextPosition *)position
{
Q_UNUSED(position);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment