QtBase: Fix painting example arthur background color
authorDavid Schulz <david.schulz@digia.com>
Tue, 27 Nov 2012 09:14:15 +0000 (10:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 29 Nov 2012 23:53:07 +0000 (00:53 +0100)
commitc3b4f276033ad024b649fae9a25a0a1fc2d6ea65
tree2ac6df5e597a0c62a6a3be808caf50795b807781
parentf52177829a20b55624168870498947b28b82d220
QtBase: Fix painting example arthur background color

The arthur style set the background color to a bright color
and leave the foregroud color, for example for text, untouched.

If you are using a color theme with bright foregroundcolors on your
system this will result in unreadable text on push- and
radio-buttons.

The function drawControl is now reimplemented and the labels
with text are drawn with an appropriate color.

Change-Id: Ifd7f3a2b1c0305130255009c7733e0966830171a
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
examples/widgets/painting/shared/arthurstyle.cpp
examples/widgets/painting/shared/arthurstyle.h