]> git.sesse.net Git - nageru/commitdiff
Fix a Qt deprecation warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Apr 2021 15:56:42 +0000 (17:56 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Apr 2021 15:56:42 +0000 (17:56 +0200)
futatabi/mainwindow.cpp

index 0bc11d810e0c8e411d65a655987f387874b37a07..29eeb756655f5ea85d0099b2b068ee116861c8eb 100644 (file)
@@ -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;