mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +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:
parent
5c9383a54a
commit
074555b6ea
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user