summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-12-17 14:12:30 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:24:59 (GMT)
commitd6912358e673870ed01c57d334fbb4542ce44395 (patch)
tree9e64d4f3bd4af1c0861e161854e9e84f6f9b86e0 /src
parentbe22bbb6a171408861b7d1da2f8aa4f7b754a5ef (diff)
downloadQt-d6912358e673870ed01c57d334fbb4542ce44395.zip
Qt-d6912358e673870ed01c57d334fbb4542ce44395.tar.gz
Qt-d6912358e673870ed01c57d334fbb4542ce44395.tar.bz2
Draw focusrect through style proxy
This function call was simply not converted to use the new proxy style, hence preventing people from overriding it properly. Reviewed-by: Andy Shaw Task-number: QTBUG-16127
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qcommonstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index 29b9d0d..061c63b 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -2218,7 +2218,7 @@ void QCommonStyle::drawControl(ControlElement element, const QStyleOption *opt,
if (vopt->state & QStyle::State_HasFocus) {
QStyleOptionFocusRect o;
o.QStyleOption::operator=(*vopt);
- o.rect = subElementRect(SE_ItemViewItemFocusRect, vopt, widget);
+ o.rect = proxy()->subElementRect(SE_ItemViewItemFocusRect, vopt, widget);
o.state |= QStyle::State_KeyboardFocusChange;
o.state |= QStyle::State_Item;
QPalette::ColorGroup cg = (vopt->state & QStyle::State_Enabled)