diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2020-04-04 16:18:30 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2020-04-04 16:18:30 +0000 |
commit | ef29e7f4d300e3776c3834c1d31c69d002821887 (patch) | |
tree | ea1050ebd93aa5f9b3363edca998e46b781adb4f /games/pentobi | |
parent | bff6ed8388cdb9ef6061cae07eabe8251d6ed789 (diff) | |
download | ports-ef29e7f4d300e3776c3834c1d31c69d002821887.tar.gz ports-ef29e7f4d300e3776c3834c1d31c69d002821887.zip |
games/pentobi: Prepare for Qt5-5.14
PR: 244964
Notes
Notes:
svn path=/head/; revision=530688
Diffstat (limited to 'games/pentobi')
-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()) |