From 3226727032e4810f46f1a101e29a1a1f5895e20a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 5 Apr 2021 17:56:42 +0200 Subject: [PATCH] Fix a Qt deprecation warning. --- futatabi/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/futatabi/mainwindow.cpp b/futatabi/mainwindow.cpp index 0bc11d8..29eeb75 100644 --- a/futatabi/mainwindow.cpp +++ b/futatabi/mainwindow.cpp @@ -928,7 +928,7 @@ bool MainWindow::eventFilter(QObject *watched, QEvent *event) } else if (watched == ui->playlist->viewport()) { destination = ui->playlist; jog_destination = JOG_PLAYLIST; - if (destination->columnAt(wheel->x()) != int(PlayList::Column::CAMERA)) { + if (destination->columnAt(wheel->position().x()) != int(PlayList::Column::CAMERA)) { last_mousewheel_camera_row = -1; } } else { @@ -936,8 +936,8 @@ bool MainWindow::eventFilter(QObject *watched, QEvent *event) return false; } - int column = destination->columnAt(wheel->x()); - int row = destination->rowAt(wheel->y()); + int column = destination->columnAt(wheel->position().x()); + int row = destination->rowAt(wheel->position().y()); if (column == -1 || row == -1) return false; -- 2.39.2