Fix: don't override the new non-cosmetic default pen in qwidget
authoraavit <eirik.aavitsland@digia.com>
Tue, 23 Oct 2012 13:27:18 +0000 (15:27 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 25 Oct 2012 12:10:04 +0000 (14:10 +0200)
commit52ccbd8911f1b96b8bea6a4c9da4d4a762dee2a7
tree87120fb7841570297e85d4e73255cafd04310148
parentde58eb64bc564fcb8af61a45576783e432d2380c
Fix: don't override the new non-cosmetic default pen in qwidget

As QWidget initializes any painter created in paintevent handler to
have the pen color of the palette's foreground, setting it to 0 width,
i.e. cosmetic, it negated the effect of the recent change to default
1-width non-cosmetic, ref. I04d910e9700baf7f13a8aac07a3633014bb9283e

This caused scaled painting with default pen on QImage and QWidget
to yield different results.

Change-Id: I930b64bf7c0a8c84b9ea3edb49adc813370fed0e
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/widgets/kernel/qwidget.cpp
tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp