summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qcommonstyle_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qcommonstyle_p.h')
-rw-r--r--src/widgets/styles/qcommonstyle_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/widgets/styles/qcommonstyle_p.h b/src/widgets/styles/qcommonstyle_p.h
index 979c2a5548..8f8a97a2dc 100644
--- a/src/widgets/styles/qcommonstyle_p.h
+++ b/src/widgets/styles/qcommonstyle_p.h
@@ -92,19 +92,19 @@ public:
mutable QRect decorationRect, displayRect, checkRect;
mutable QStyleOptionViewItem *cachedOption;
bool isViewItemCached(const QStyleOptionViewItem &option) const {
- return cachedOption && (option.rect == cachedOption->rect
- && option.direction == cachedOption->direction
+ return cachedOption && (option.widget == cachedOption->widget
+ && option.index == cachedOption->index
&& option.state == cachedOption->state
+ && option.rect == cachedOption->rect
+ && option.text == cachedOption->text
+ && option.direction == cachedOption->direction
&& option.displayAlignment == cachedOption->displayAlignment
&& option.decorationAlignment == cachedOption->decorationAlignment
&& option.decorationPosition == cachedOption->decorationPosition
&& option.decorationSize == cachedOption->decorationSize
- && option.font == cachedOption->font
&& option.features == cachedOption->features
- && option.widget == cachedOption->widget
- && option.index == cachedOption->index
&& option.icon.isNull() == cachedOption->icon.isNull()
- && option.text == cachedOption->text
+ && option.font == cachedOption->font
&& option.viewItemPosition == cachedOption->viewItemPosition);
}
#endif