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:
parent
0ac2c5b81f
commit
312bdcf909
@ -330,7 +330,7 @@ void ToolButton::paint(QPainter *painter,
|
|||||||
const QStyleOptionGraphicsItem *option,
|
const QStyleOptionGraphicsItem *option,
|
||||||
QWidget *widget)
|
QWidget *widget)
|
||||||
{
|
{
|
||||||
if (!styleSheet().isNull()) {
|
if (!styleSheet().isNull() || Theme::defaultTheme()->useNativeWidgetStyle()) {
|
||||||
QGraphicsProxyWidget::paint(painter, option, widget);
|
QGraphicsProxyWidget::paint(painter, option, widget);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user