Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2020 16:18:30 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r530688 - head/games/pentobi/files
Message-ID:  <202004041618.034GIUnT077311@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sat Apr  4 16:18:30 2020
New Revision: 530688
URL: https://svnweb.freebsd.org/changeset/ports/530688

Log:
  games/pentobi: Prepare for Qt5-5.14
  
  PR:		244964

Added:
  head/games/pentobi/files/patch-src_pentobi_MainWindow.cpp   (contents, props changed)

Added: head/games/pentobi/files/patch-src_pentobi_MainWindow.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pentobi/files/patch-src_pentobi_MainWindow.cpp	Sat Apr  4 16:18:30 2020	(r530688)
@@ -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())



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004041618.034GIUnT077311>