1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Little modification in LeaveEvent processing in WebPage.

- it is now sending fake mouse move event with correct x value
  according to cursor position
This commit is contained in:
nowrep 2012-05-08 14:28:54 +02:00
parent 5c9383a54a
commit 074555b6ea

View File

@ -370,7 +370,9 @@ bool WebPage::event(QEvent* event)
// So we are faking mouse move event with proper coordinates for
// so called "just outside of the widget" position
QMouseEvent fakeEvent(QEvent::MouseMove, QPoint(0, -1), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
QPoint mousePos(view()->mapFromGlobal(QCursor::pos()).x(), -1);
QMouseEvent fakeEvent(QEvent::MouseMove, mousePos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
return QWebPage::event(&fakeEvent);
}