games/pentobi: Prepare for Qt5-5.14

PR:		244964
This commit is contained in:
Tobias C. Berner 2020-04-04 16:18:30 +00:00
parent bff6ed8388
commit ef29e7f4d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=530688

View File

@ -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())