Qt/RenderWidget: Fix getting painted over

This commit is contained in:
spycrab 2018-04-20 22:11:54 +02:00
parent b059b3a646
commit c1dccdc0e5
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ bool RenderWidget::event(QEvent* event)
{ {
switch (event->type()) switch (event->type())
{ {
case QEvent::Paint:
return !autoFillBackground();
case QEvent::KeyPress: case QEvent::KeyPress:
{ {
QKeyEvent* ke = static_cast<QKeyEvent*>(event); QKeyEvent* ke = static_cast<QKeyEvent*>(event);