Sync r803670 from oxygen.

svn path=/trunk/KDE/kdebase/workspace/; revision=805133
This commit is contained in:
Luboš Luňák 2008-05-07 17:08:17 +00:00
parent 6527f9c0b6
commit e45c3073a0
2 changed files with 3 additions and 4 deletions

View file

@ -158,6 +158,9 @@ void OxygenButton::paintEvent(QPaintEvent *)
QPainter painter(this);
QPalette pal = palette(); // de-const-ify
helper_.renderWindowBackground(&painter, this->rect(), this);
if (type_ == ButtonMenu) {
// we paint the mini icon (which is 16 pixels high)
int dx = (width() - 16) / 2;

View file

@ -91,10 +91,6 @@ void OxygenClient::init()
widget()->setAutoFillBackground(false);
widget()->setAttribute(Qt::WA_OpaquePaintEvent);
#ifdef __GNUC__
#warning This wastes quite a lot of memory.
#endif
widget()->setAttribute(Qt::WA_PaintOnScreen, false);
}
bool OxygenClient::decorationBehaviour(DecorationBehaviour behaviour) const