diff options
author | Andy Shaw <andy.shaw@qt.io> | 2018-12-05 10:28:17 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-12-10 06:28:13 +0000 |
commit | d391d4db49bd8a7da8516af9c8ff8083a927bf79 (patch) | |
tree | 36004b3211421f06ea8e41ae40e3c67fc76014d0 /src/widgets/styles/qfusionstyle.cpp | |
parent | 45c358b0da4e8f629d9c70a32fe06a3fb1cb6ca8 (diff) |
Fusion: Don't draw the background of the lineedit when drawing the frame
Since only the frame is being drawn here, it should only draw the
outline. Otherwise it will override any background drawing done via a
stylesheet.
Change-Id: I408fc44743747ad369c700b3d52935bfc8826f11
Fixes: QTBUG-71950
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/styles/qfusionstyle.cpp')
-rw-r--r-- | src/widgets/styles/qfusionstyle.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index df151067df..c565932889 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -725,7 +725,6 @@ void QFusionStyle::drawPrimitive(PrimitiveElement elem, // Draw Outline painter->setPen( QPen(hasFocus ? highlightedOutline : outline)); - painter->setBrush(option->palette.base()); painter->drawRoundedRect(r.adjusted(0, 0, -1, -1), 2, 2); if (hasFocus) { |