diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-09-04 09:38:29 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-09-10 15:42:52 +0200 |
commit | dac6bad5ba411ccc4e6e5fe18250a912d7e87b9c (patch) | |
tree | 9a8dd6a17d01a6fcf66b182e4493525ecda301d1 | |
parent | c5d9dc9367c3d3acf5fdf473c3288c8ccf2f2ef5 (diff) |
-rw-r--r-- | src/quick/items/qquicktextinput.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index e265d04ecc..27752d53b4 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -771,8 +771,7 @@ QRectF QQuickTextInput::cursorRectangle() const return QRectF(); qreal x = l.cursorToX(c) - d->hscroll; qreal y = l.y() - d->vscroll; - qreal height = l.ascent() + l.descent(); - return QRectF(x, y, 1, height); + return QRectF(x, y, 1, l.height()); } /*! @@ -1388,8 +1387,7 @@ QRectF QQuickTextInput::positionToRectangle(int pos) const return QRectF(); qreal x = l.cursorToX(pos) - d->hscroll; qreal y = l.y() - d->vscroll; - qreal height = l.ascent() + l.descent(); - return QRectF(x, y, 1, height); + return QRectF(x, y, 1, l.height()); } /*! |