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>
bb10
Andy Shaw 2020-07-13 12:36:41 +02:00
parent 1a280b2072
commit eb201a57db
1 changed files with 2 additions and 1 deletions

View File

@ -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)