Tracing: Avoid some warnings

QHoverEvent::pos() is deprecated.

Change-Id: I6c7460940e842c82684f9da172ba9413a951af7a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Ulf Hermann
2024-09-26 15:19:18 +02:00
parent ab1abcef8b
commit 07061becdd

View File

@@ -170,7 +170,8 @@ void TimelineRenderer::hoverMoveEvent(QHoverEvent *event)
{
Q_D(TimelineRenderer);
if (!d->selectionLocked) {
d->findCurrentSelection(event->pos().x(), event->pos().y(), width());
const QPoint pos = event->position().toPoint();
d->findCurrentSelection(pos.x(), pos.y(), width());
if (d->currentEventIndex != -1)
setSelectedItem(d->currentEventIndex);
}