summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/styles/qstyle
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-01-06 15:41:05 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-01-08 10:07:00 +0100
commitd056618d685bd93d57538b703f25d8cb35d91aed (patch)
tree10642b089cadee3ed993924989de00477a5b4f2e /tests/auto/widgets/styles/qstyle
parent7ad75cd8ef7e95bba3cfc694b7baffbc445bd2b0 (diff)
Make sure widget is polished before checking its font
QWidget is polished when show() is called, so unless you do this first, QWidget::font() will return a default constructed QFont, and not necessarily the default specified in the platform theme. Comparing this to QPainter::font() later, which has been resolved against the platform theme font, and not the default constructed font, you can get a mismatch and a false test failure. This happened on Android. Change-Id: I41ef5b10879bbd4bb8ef8d52ecaccf5e8e894075 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'tests/auto/widgets/styles/qstyle')
0 files changed, 0 insertions, 0 deletions