if the theme wants to paint with the system style just let the proxy paint

svn path=/trunk/KDE/kdelibs/; revision=1216324
This commit is contained in:
Marco Martin 2011-01-22 17:55:14 +00:00
parent 0ac2c5b81f
commit 312bdcf909

View File

@ -330,7 +330,7 @@ void ToolButton::paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
QWidget *widget)
{
if (!styleSheet().isNull()) {
if (!styleSheet().isNull() || Theme::defaultTheme()->useNativeWidgetStyle()) {
QGraphicsProxyWidget::paint(painter, option, widget);
return;
}