diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-12-17 15:12:30 +0100 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-12-17 15:12:30 +0100 |
commit | 912e8a2c90a200300feaef18beedd4e6af3e8623 (patch) | |
tree | 0b659a38d74dcf78dfc2416ace67c0367d2df43f /src/gui/styles/qcommonstyle.cpp | |
parent | 09656c9b57af5bb383d029c62396b536899b28e7 (diff) | |
download | qt4-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.cpp | 2 |
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) |