less use of deprecated functions

svn path=/trunk/KDE/kdebase/workspace/; revision=535352
This commit is contained in:
Stephan Kulow 2006-04-29 12:01:47 +00:00
parent 5f4822c3c6
commit 96db9d761c

View file

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