diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-10-08 19:10:01 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-10-08 19:21:53 (GMT) |
commit | 8c4edbd04f350294462fd689748de2dd7cc84d47 (patch) | |
tree | 0040c308fe3a5751ec04c27367a8110c5954912c /src/gui/styles/qstylesheetstyle.cpp | |
parent | 9551b8c349ce4e15a57c24a2408ee1b73c2b7510 (diff) | |
download | Qt-8c4edbd04f350294462fd689748de2dd7cc84d47.zip Qt-8c4edbd04f350294462fd689748de2dd7cc84d47.tar.gz Qt-8c4edbd04f350294462fd689748de2dd7cc84d47.tar.bz2 |
Fix tab widget painting in QGtkStyle with reverse
This also adds QStyleOptionTabWidgetFrameV2 so that we do not have
to do ugly hacks in the style to obtain it.
Task-number: QTBUG-5187
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/styles/qstylesheetstyle.cpp')
-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 2d90aa1..ae1d33a 100644 --- a/src/gui/styles/qstylesheetstyle.cpp +++ b/src/gui/styles/qstylesheetstyle.cpp @@ -4325,7 +4325,7 @@ void QStyleSheetStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *op QRenderRule subRule = renderRule(w, opt, PseudoElement_TabWidgetPane); if (subRule.hasNativeBorder()) { subRule.drawBackground(p, opt->rect); - QStyleOptionTabWidgetFrame frmCopy(*frm); + QStyleOptionTabWidgetFrameV2 frmCopy(*frm); subRule.configurePalette(&frmCopy.palette, QPalette::WindowText, QPalette::Window); baseStyle()->drawPrimitive(pe, &frmCopy, p, w); } else { |