From: Steinar H. Gunderson Date: Mon, 5 Apr 2021 15:56:42 +0000 (+0200) Subject: Fix a Qt deprecation warning. X-Git-Tag: 2.0.2~6 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=3226727032e4810f46f1a101e29a1a1f5895e20a Fix a Qt deprecation warning. --- 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;