Skip to content

Commit bb22bb6

Browse files
committed
deprecated qt cursor positioning
1 parent 86b1c73 commit bb22bb6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Source/WebKitLegacy/qt/WebCoreSupport/ProgressTrackerClientQt.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <WebCore/HandleUserInputEventResult.h>
3939
#include <WebCore/HTMLFormElement.h>
4040
#include <WebCore/ProgressTracker.h>
41+
#include <QCursor>
4142

4243
namespace WebCore {
4344

@@ -80,7 +81,8 @@ void ProgressTrackerClientQt::progressFinished(LocalFrame& originatingProgressFr
8081
// (2) display the tool tip if the mouse hovers a node which has a tool tip.
8182
QPoint localPos;
8283
if (frame->handleProgressFinished(&localPos)) {
83-
QMouseEvent event(QEvent::MouseMove, localPos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
84+
QPoint globalPos = QCursor::pos();
85+
QMouseEvent event(QEvent::MouseMove, localPos, globalPos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
8486
originatingProgressFrame.eventHandler().mouseMoved(convertMouseEvent(&event, 0));
8587
}
8688
}

Source/WebKitLegacy/qt/WebCoreSupport/WebEventConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ WebKitPlatformMouseEvent::WebKitPlatformMouseEvent(QInputEvent* event, int click
108108

109109
m_type = type;
110110
m_position = IntPoint(mouseEvent->pos());
111-
m_globalPosition = IntPoint(mouseEvent->globalPos());
111+
m_globalPosition = IntPoint(mouseEvent->globalPosition().toPoint());
112112
}
113113

114114
m_clickCount = clickCount;

0 commit comments

Comments
 (0)