qt6-bb10/tests/auto/gui
Bernd Weimer d641792ff2 Fix QFontMetrics width
Commit f4dd534 introduced a regression, so that QFontMetrics reported
a wrong size (to be more specific width) for FreeType fonts.
The calculation of glyph advances has to to reflect (rounded)
integral number of pixels. This was only done when the glyph was cached.
So in some cases the first call to QFontMetrics::size gave a different
result than the second.
This patch reverts f4dd5344fb.

The tst_QFontMetrics::same auto test only happened to work on some
platforms, on BlackBerry for instance it did not. Extended the test
case to make sure it works for different font sizes.

Change-Id: Ia5bb9abd3ff98193c9bba048b85207672ed8d9c3
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2014-02-20 20:13:27 +01:00
..
image Remove qSort usages from gui tests 2014-02-20 08:10:19 +01:00
itemmodels expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
kernel Restore support for -title command line argument on X11, add -qwindowtitle. 2014-02-12 20:12:17 +01:00
math3d Add operator[] to QVectorND classes 2013-08-27 17:50:40 +02:00
painting Merge remote-tracking branch 'origin/stable' into dev 2014-02-12 16:28:07 +01:00
qopengl QOpenGLTextureBlitter: add some autotests 2014-02-16 11:06:00 +01:00
text Fix QFontMetrics width 2014-02-20 20:13:27 +01:00
util Bugfix QDesktopServices on Windows 2013-07-11 10:56:49 +02:00
gui.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00