forked from qt-creator/qt-creator
Tracing: Avoid some warnings
QHoverEvent::pos() is deprecated. Change-Id: I6c7460940e842c82684f9da172ba9413a951af7a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user