summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-07-13 12:36:41 +0200
committerAndy Shaw <andy.shaw@qt.io>2020-07-15 12:19:52 +0200
commiteb201a57dbeff93d788546e61b193dcf4f4258b9 (patch)
tree4a42628e007b4bfc6850dda6f513fc60578c1e83 /src/widgets
parent1a280b2072c5f91088874a01d5cc2ffbec9b9976 (diff)
Compare the showDecorationSelected variable when caching the option
Since the size of the display rect can change if showDecorationSelected is set then this should be included when seeing if the item is already cached. Change-Id: Ied6182337de5894d879c5ba5d1125b4869a11cc9 Pick-to: 5.15 Fixes: QTBUG-85451 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/styles/qcommonstyle_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/styles/qcommonstyle_p.h b/src/widgets/styles/qcommonstyle_p.h
index 6223a26a54..5513463104 100644
--- a/src/widgets/styles/qcommonstyle_p.h
+++ b/src/widgets/styles/qcommonstyle_p.h
@@ -112,7 +112,8 @@ public:
&& option.features == cachedOption->features
&& option.icon.isNull() == cachedOption->icon.isNull()
&& option.font == cachedOption->font
- && option.viewItemPosition == cachedOption->viewItemPosition);
+ && option.viewItemPosition == cachedOption->viewItemPosition
+ && option.showDecorationSelected == cachedOption->showDecorationSelected);
}
#endif
#if QT_CONFIG(toolbutton)