diff --git a/kstyle/oxygenstyle.cpp b/kstyle/oxygenstyle.cpp --- a/kstyle/oxygenstyle.cpp +++ b/kstyle/oxygenstyle.cpp @@ -3270,7 +3270,7 @@ if( rect.height() < 2*Metrics::LineEdit_FrameWidth + option->fontMetrics.height() ) { - const QColor background( palette.color( QPalette::Base ) ); + const QBrush& background( palette.brush( QPalette::Base ) ); painter->setPen( Qt::NoPen ); painter->setBrush( background ); @@ -3295,7 +3295,7 @@ // fill painter->setPen( Qt::NoPen ); - painter->setBrush( palette.color( QPalette::Base ) ); + painter->setBrush( palette.brush( QPalette::Base ) ); _helper->fillHole( *painter, rect ); // render hole