summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-08-19 15:00:45 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-08-19 15:00:45 (GMT)
commit10524a2d304010314fd48dd8131a600210de8a82 (patch)
tree2b350d6b0ed7c70b4a228c129aa17396a90b6c18
parent129a44a9cea98c4e3d24a2b890c20ff154c87172 (diff)
parentfc9d3d2f476ff3a87fccffe3cfe2544547d2bdc3 (diff)
downloadQt-10524a2d304010314fd48dd8131a600210de8a82.zip
Qt-10524a2d304010314fd48dd8131a600210de8a82.tar.gz
Qt-10524a2d304010314fd48dd8131a600210de8a82.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2: QGroupBox: Fix the focus rect of the title when using stylesheet
-rw-r--r--src/gui/styles/qstylesheetstyle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp
index 7351a7d..4be439d 100644
--- a/src/gui/styles/qstylesheetstyle.cpp
+++ b/src/gui/styles/qstylesheetstyle.cpp
@@ -3048,6 +3048,13 @@ void QStyleSheetStyle::drawComplexControl(ComplexControl cc, const QStyleOptionC
titleRule.configurePalette(&pal, QPalette::WindowText, QPalette::Window);
drawItemText(p, labelRect, alignment, pal, gb->state & State_Enabled,
gb->text, QPalette::WindowText);
+
+ if (gb->state & State_HasFocus) {
+ QStyleOptionFocusRect fropt;
+ fropt.QStyleOption::operator=(*gb);
+ fropt.rect = labelRect;
+ drawPrimitive(PE_FrameFocusRect, &fropt, p, w);
+ }
}
return;