QQuickTextInput: keep floating point precition when calculating offset
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Wed, 3 Sep 2014 12:55:59 +0000 (14:55 +0200)
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>
Thu, 4 Sep 2014 07:47:55 +0000 (09:47 +0200)
commit5b162837d86c38ecea715627aaf448b2eb23728a
tree803714035644800da2fbf555a90f21eee47b3a52
parent222f22f626d8ae92500da440a4fb5f429da52407
QQuickTextInput: keep floating point precition when calculating offset

Without this patch, positionToRectangle will return a slightly
different rectangle than what ends up being drawn.

Change-Id: Ib1a3936f0fab393d6016d85d63547ec7f3036b7a
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/quick/items/qquicktextinput.cpp