QIosTextResponder: stop using deprecated constants and type
Use NSWritingDirection and corresponding enumerators instead. Change-Id: Ie76ec2b8d07ab70288c7071182f215412d3e133c Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 46b290dda8d41f6c2f71ba24d4b9647507a04b26) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
f730cc755b
commit
c7c360cd51
@ -944,20 +944,20 @@
|
|||||||
[self sendEventToFocusObject:e];
|
[self sendEventToFocusObject:e];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setBaseWritingDirection:(UITextWritingDirection)writingDirection forRange:(UITextRange *)range
|
- (void)setBaseWritingDirection:(NSWritingDirection)writingDirection forRange:(UITextRange *)range
|
||||||
{
|
{
|
||||||
Q_UNUSED(writingDirection);
|
Q_UNUSED(writingDirection);
|
||||||
Q_UNUSED(range);
|
Q_UNUSED(range);
|
||||||
// Writing direction is handled by QLocale
|
// Writing direction is handled by QLocale
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UITextWritingDirection)baseWritingDirectionForPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction
|
- (NSWritingDirection)baseWritingDirectionForPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction
|
||||||
{
|
{
|
||||||
Q_UNUSED(position);
|
Q_UNUSED(position);
|
||||||
Q_UNUSED(direction);
|
Q_UNUSED(direction);
|
||||||
if (QLocale::system().textDirection() == Qt::RightToLeft)
|
if (QLocale::system().textDirection() == Qt::RightToLeft)
|
||||||
return UITextWritingDirectionRightToLeft;
|
return NSWritingDirectionRightToLeft;
|
||||||
return UITextWritingDirectionLeftToRight;
|
return NSWritingDirectionLeftToRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UITextRange *)characterRangeByExtendingPosition:(UITextPosition *)position inDirection:(UITextLayoutDirection)direction
|
- (UITextRange *)characterRangeByExtendingPosition:(UITextPosition *)position inDirection:(UITextLayoutDirection)direction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user