summaryrefslogtreecommitdiff
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-12-17 15:12:30 +0100
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-12-17 15:12:30 +0100
commit912e8a2c90a200300feaef18beedd4e6af3e8623 (patch)
tree0b659a38d74dcf78dfc2416ace67c0367d2df43f /src/gui/styles/qcommonstyle.cpp
parent09656c9b57af5bb383d029c62396b536899b28e7 (diff)
downloadqt4-tools-912e8a2c90a200300feaef18beedd4e6af3e8623.tar.gz
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/gui/styles/qcommonstyle.cpp')
-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 039a6da5e9..296455bdf5 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -2217,7 +2217,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)