diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-13 19:39:04 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-15 09:28:17 (GMT) |
commit | e9ded3b600256686e4a735e365988f317a51db03 (patch) | |
tree | a33f3702c61877b77315811e0775cc985d1c5f4c /src | |
parent | 14a07bbce2cdb5bb544cc2da8ecec617cb1961b8 (diff) | |
download | Qt-e9ded3b600256686e4a735e365988f317a51db03.zip Qt-e9ded3b600256686e4a735e365988f317a51db03.tar.gz Qt-e9ded3b600256686e4a735e365988f317a51db03.tar.bz2 |
Fix painting of the background of QAbstractItemView, QTextEdit and co
when only setting a border with the stylesheet
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qstylesheetstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp index 01d8aad..2efa4a7 100644 --- a/src/gui/styles/qstylesheetstyle.cpp +++ b/src/gui/styles/qstylesheetstyle.cpp @@ -4171,7 +4171,7 @@ void QStyleSheetStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *op if (!rule.hasDrawable()) { QWidget *container = containerWidget(w); if (autoFillDisabledWidgets->contains(container) - && (container == w || !renderRule(container, opt).hasDrawable())) { + && (container == w || !renderRule(container, opt).hasBackground())) { //we do not have a background, but we disabled the autofillbackground anyway. so fill the background now. // (this may happen if we have rules like :focus) p->fillRect(opt->rect, opt->palette.brush(w->backgroundRole())); |