remove unecessary painting

This commit is contained in:
Aaron Seigo 2011-12-07 14:42:46 +01:00
parent a9c3cb256a
commit fe2286c5da
2 changed files with 1 additions and 8 deletions

View File

@ -535,12 +535,6 @@ void Dialog::keyPressEvent(QKeyEvent *event)
bool Dialog::event(QEvent *event)
{
if (event->type() == QEvent::Paint) {
QPainter p(this);
p.setCompositionMode(QPainter::CompositionMode_Source);
p.fillRect(rect(), Qt::transparent);
}
return QWidget::event(event);
}

View File

@ -356,10 +356,9 @@ void ToolTip::resizeEvent(QResizeEvent *e)
void ToolTip::paintEvent(QPaintEvent *e)
{
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
painter.setClipRect(e->rect());
painter.setCompositionMode(QPainter::CompositionMode_Source);
painter.fillRect(rect(), Qt::transparent);
painter.fillRect(e->rect(), Qt::transparent);
d->background->paintFrame(&painter);
}