TextInput: Fix cursor height
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Tue, 9 Apr 2013 12:46:04 +0000 (14:46 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Apr 2013 13:20:48 +0000 (15:20 +0200)
commit77dbda72b04eec6040a13791992af7a066383e6a
treed124f15320ef0f0438ef4f74835081d88c5d236a
parentf012ddd23226808a459104d14654e9e25f749cb7
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: J-P Nurmi <jpnurmi@digia.com>
src/quick/items/qquicktextinput.cpp