r24873 by craig - Qt6 build fix: Use QWheelEvent::angleDelta() given docs on pixelData()

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 31 19:39:36 UTC 2022


Author: craig
Date: Mon Jan 31 19:39:36 2022
New Revision: 24873

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24873
Log:
Qt6 build fix: Use QWheelEvent::angleDelta() given docs on pixelData()

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24873&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Mon Jan 31 19:39:36 2022
@@ -3204,12 +3204,12 @@
 	if (w->modifiers() == Qt::ControlModifier)
 	{
 		FPoint mp = m_canvas->globalToCanvas(w->globalPosition());
-		w->pixelDelta().x() > 0 ? slotZoomIn(mp.x(), mp.y() , true) : slotZoomOut(mp.x(), mp.y(), true);
+		w->angleDelta().x() > 0 ? slotZoomIn(mp.x(), mp.y() , true) : slotZoomOut(mp.x(), mp.y(), true);
 	}
 	else
 	{
 		int dX = 0, dY = 0;
-		int moveBy = (w->pixelDelta().x() < 0) ? Prefs->uiPrefs.wheelJump : -Prefs->uiPrefs.wheelJump;
+		int moveBy = (w->angleDelta().x() < 0) ? Prefs->uiPrefs.wheelJump : -Prefs->uiPrefs.wheelJump;
 		if ((w->angleDelta().y()==0) || ( w->modifiers() == Qt::ShiftModifier ))
 			dX = moveBy;
 		else




More information about the scribus-commit mailing list