From bc88cd4796ef8845bbdc40b8b066d3ea1111fc3f Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Fri, 5 Jun 2009 16:13:50 +0300 Subject: Added subElementRect implementation for SE_ItemViewItemCheckIndicator. S60Style did not implement SE_ItemViewItemCheckIndicator if given option was somethign else than QStyleOptionViewItemV4. This causes some autotests to fail. Added appropriate query for QCommonStyle. --- src/gui/styles/qs60style.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 83f5a6b..068f5b3 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -2589,6 +2589,8 @@ QRect QS60Style::subElementRect(SubElement element, const QStyleOption *opt, con ret.setRect(opt->rect.right() - indicatorWidth - spacing, opt->rect.top() + heightOffset, indicatorWidth, indicatorHeight); } + } else { + ret = QCommonStyle::subElementRect(element, opt, widget); } break; case SE_HeaderLabel: -- cgit v0.12