Commit 77dbda72 authored by Gabriel de Dietrich's avatar Gabriel de Dietrich Committed by The Qt Project
Browse files

TextInput: Fix cursor height


On many platforms, the current cursor looks too tall. The logic used
in this patch is inspired by what we have in QTextLayout::drawCursor().
It still looks too tall on Mac, but so it does in Qt Widgets.

QQuickTextInput::positionToRectangle() has also been updated for consistency.

Change-Id: I69b8ad246238d54db370db639a319a3edba6d78a
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
parent f012ddd2
Branches
Tags
No related merge requests found
Showing with 10 additions and 4 deletions
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