Fixes regression in QStyleSheet regarding QFrame:no-frame
authorOlivier Goffart <ogoffart@trolltech.com>
Thu, 10 Sep 2009 16:25:46 +0000 (18:25 +0200)
committerOlivier Goffart <ogoffart@trolltech.com>
Thu, 10 Sep 2009 16:28:42 +0000 (18:28 +0200)
commitbe8c17034b99c5f52b5d885055493c405fd5eadb
tree11324b57672c383fc77730d2e7cd5487ddafb4c7
parent29259d93691f0fc7790108c00a8718c07fa3ae5e
Fixes regression in QStyleSheet regarding QFrame:no-frame

In Qt know the frame is drawn in PE_Widget with stylesheet. But the
QStyleOption passed by QWidgetPrivate::drawBackground is really simple
and doesn't contains frame information.

We need to rely on the widget itself to know if we should look for the
:no-frame pseudo element.

Reviewed-by: jbache
Task-number: 261110
src/gui/styles/qstylesheetstyle.cpp
tests/auto/uiloader/baseline/css_frames.ui