less use of deprecated functions
svn path=/trunk/KDE/kdebase/workspace/; revision=535352
This commit is contained in:
parent
5f4822c3c6
commit
96db9d761c
1 changed files with 4 additions and 4 deletions
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue