summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-22 12:26:21 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-23 13:15:41 (GMT)
commit2966b2a95b0d7d161a6dc1a6edab3d6aa6edf004 (patch)
treeda22289d8ae4a39e621202952a56418da242cfc5 /src
parent7dcf984f85a3a75ce4c078cc931bd9d2304bc235 (diff)
downloadQt-2966b2a95b0d7d161a6dc1a6edab3d6aa6edf004.zip
Qt-2966b2a95b0d7d161a6dc1a6edab3d6aa6edf004.tar.gz
Qt-2966b2a95b0d7d161a6dc1a6edab3d6aa6edf004.tar.bz2
When using style sheets, the focus flag was not propagated to the children of
complex widgets. Reviewed-by: Olivier
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qstylesheetstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp
index e33b255..def82ae 100644
--- a/src/gui/styles/qstylesheetstyle.cpp
+++ b/src/gui/styles/qstylesheetstyle.cpp
@@ -1759,7 +1759,7 @@ QRenderRule QStyleSheetStyle::renderRule(const QWidget *w, const QStyleOption *o
QStyle::SubControl subControl = knownPseudoElements[pseudoElement].subControl;
if (!(complex->activeSubControls & subControl))
- state = QStyle::State(state & (QStyle::State_Enabled | QStyle::State_Horizontal));
+ state &= (QStyle::State_Enabled | QStyle::State_Horizontal | QStyle::State_HasFocus);
}
switch (pseudoElement) {