Commit 9b01e7c1 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

map the global position for the tooltip

otherwise the tooltip is incorrectly placed on windows with windows that
aren't maximized
parent 36626ae2
Pipeline #185679 passed with stage
in 2 minutes and 51 seconds
......@@ -724,8 +724,7 @@ void RadialMap::Item::hoverMoveEvent(QHoverEvent *e)
const QRectF screenRect = window()->screen()->availableGeometry();
// QPoint tooltipPosition = e->globalPos() + QPoint(20, 20);
QPoint tooltipPosition = e->pos() + QPoint(20, 20);
QPoint tooltipPosition = window()->mapToGlobal(e->pos()) + QPoint(20, 20);
QRectF tooltipRect(tooltipPosition, m_tooltip.size());
// Same content as before
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment