remove unecessary painting
This commit is contained in:
parent
a9c3cb256a
commit
fe2286c5da
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user