diff options
-rw-r--r-- | games/pentobi/files/patch-src_pentobi_MainWindow.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/games/pentobi/files/patch-src_pentobi_MainWindow.cpp b/games/pentobi/files/patch-src_pentobi_MainWindow.cpp new file mode 100644 index 000000000000..17dee5792636 --- /dev/null +++ b/games/pentobi/files/patch-src_pentobi_MainWindow.cpp @@ -0,0 +1,14 @@ +--- src/pentobi/MainWindow.cpp.orig 2020-04-04 16:11:20 UTC ++++ src/pentobi/MainWindow.cpp +@@ -3453,7 +3453,11 @@ void MainWindow::veryGoodMove(bool checked) + + void MainWindow::wheelEvent(QWheelEvent* event) + { ++#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) + int delta = event->delta() / 8 / 15; ++#else ++ int delta = event->angleDelta().y() / 8 / 15; ++#endif + if (delta > 0) + { + if (! m_guiBoard->getSelectedPiece().is_null()) |