qt: Compatibility improvements

* Patch to build with Qt 5.11 and later by jriwanek
* Attempt to fix viewport on hardware renderers
This commit is contained in:
Cacodemon345
2022-02-11 13:49:45 +06:00
parent 15bc29aef8
commit bfebbd05d3
5 changed files with 12 additions and 9 deletions

View File

@@ -138,10 +138,6 @@ void RendererStack::mousePressEvent(QMouseEvent *event)
{
mousedata.mousebuttons |= event->button();
}
if (main_window->frameGeometry().contains(event->pos()) && !geometry().contains(event->pos()))
{
main_window->windowHandle()->startSystemMove();
}
event->accept();
}
void RendererStack::wheelEvent(QWheelEvent *event)