Fix Text baselineOffset caclulations.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 26 Mar 2012 05:54:16 +0000 (15:54 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Apr 2012 23:24:38 +0000 (01:24 +0200)
commitb20df2bf54aec02f46d960868562cf1b100d455c
treef883cb58b24af39921fbe8f20d9d1599c9d350af
parent9606b1b66721e6296d06fca343f4f2d6ffb8419a
Fix Text baselineOffset caclulations.

Update the baselineOffset when short cutting layout due to an empty
text property.  And allow alterations to the baseline due to images,
font scaling and custom layouts when doing a layout.

Task-number: QTBUG-24303
Change-Id: I5a31a6108cded490fef8b0674e15558ea4e22d6b
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/qquicktext.cpp
src/quick/items/qquicktext_p_p.h
tests/auto/quick/qquicktext/tst_qquicktext.cpp