Don't use design metrics with NativeRendering on TextInput
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Thu, 8 Nov 2012 14:04:22 +0000 (15:04 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Nov 2012 23:16:09 +0000 (00:16 +0100)
commitffab396a1d3a6054fca6c2727cd685ea89dada0e
tree8c9777ff3ef91a560a149215a584f43502d05301
parenteba5128f66718d33d48a98ae385b5c44569bc70e
Don't use design metrics with NativeRendering on TextInput

We only set the design metrics property in init(), before the
renderType has been set. Since updateLayout() is called every
time the renderType changes, it should be sufficient to set it
there.

Change-Id: If5b2cb3738e8135195848857a30f4e646bdf1d0b
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/quick/items/qquicktextinput.cpp