less use of deprecated functions

svn path=/trunk/KDE/kdebase/workspace/; revision=535352
icc-effect-5.14.5
Stephan Kulow 2006-04-29 12:01:47 +00:00
parent 5f4822c3c6
commit 96db9d761c
1 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ WebButton::WebButton(ButtonType type, WebClient *parent, bool shape)
shape_ (shape),
deco_ (parent)
{
setBackgroundMode(Qt::NoBackground);
setAttribute(Qt::WA_NoSystemBackground, true);
}
WebButton::~WebButton()
@ -153,17 +153,17 @@ WebButton::drawButton(QPainter *p)
QPen highlightPen;
if (isDown() )
highlightPen = QPen(colorGroup().light());
highlightPen = QPen(QColorGroup( palette() ).light());
else
{
if (mouseOver_)
highlightPen = QPen(colorGroup().highlight());
highlightPen = QPen( QColorGroup( palette() ).highlight());
else
highlightPen = QPen(Qt::NoPen);
}
p->fillRect(rect(), colorGroup().background());
p->fillRect(rect(), QColorGroup( palette() ).background());
Position position_;
if (0 == mapToParent(rect().topLeft() ).x() )