diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-09-23 12:52:08 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-09-23 13:22:19 (GMT) |
commit | e97b99f249ed65c6cedfc23f751a9834641271cb (patch) | |
tree | d8120b28fb710ccf4e687ad35659718709edaad7 /src/gui/styles/qwindowsstyle.cpp | |
parent | 2966b2a95b0d7d161a6dc1a6edab3d6aa6edf004 (diff) | |
download | Qt-e97b99f249ed65c6cedfc23f751a9834641271cb.zip Qt-e97b99f249ed65c6cedfc23f751a9834641271cb.tar.gz Qt-e97b99f249ed65c6cedfc23f751a9834641271cb.tar.bz2 |
Added QSlider to tst_QStyleSheetStyle::complexWidgetFocus.
When using style sheets, QSlider::handle couldn't be customized if
QSlider::groove wasn't. QComboBox::down-arrow:focus wasn't properly drawn.
Reviewed-by: Olivier
Diffstat (limited to 'src/gui/styles/qwindowsstyle.cpp')
-rw-r--r-- | src/gui/styles/qwindowsstyle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsstyle.cpp b/src/gui/styles/qwindowsstyle.cpp index 2ed9303..0f72440 100644 --- a/src/gui/styles/qwindowsstyle.cpp +++ b/src/gui/styles/qwindowsstyle.cpp @@ -3030,6 +3030,8 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp ar.adjust(2, 2, -2, -2); if (opt->state & State_Enabled) flags |= State_Enabled; + if (opt->state & State_HasFocus) + flags |= State_HasFocus; if (sunkenArrow) flags |= State_Sunken; |