X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.cpp;h=0bc11d810e0c8e411d65a655987f387874b37a07;hb=refs%2Fheads%2Fmaster;hp=49581e53caeb134d180b1bba5546a8083fec05fa;hpb=04738b0cecf5f7b6d988822c1d7595fdd52a496e;p=nageru diff --git a/futatabi/mainwindow.cpp b/futatabi/mainwindow.cpp index 49581e5..29eeb75 100644 --- a/futatabi/mainwindow.cpp +++ b/futatabi/mainwindow.cpp @@ -7,6 +7,7 @@ #include "player.h" #include "futatabi_midi_mapping.pb.h" #include "midi_mapping_dialog.h" +#include "pbo_pool.h" #include "shared/aboutdialog.h" #include "shared/disk_space_estimator.h" #include "shared/post_to_main_thread.h" @@ -927,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 { @@ -935,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;