From 98271dc35af35b7b1d2fae9bcd271fd1b5a82747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 28 Oct 2020 10:21:50 +0100 Subject: [PATCH] Fixed deprecation QWheelevent warning --- SkeletonEditingPlugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SkeletonEditingPlugin.cc b/SkeletonEditingPlugin.cc index 79bdf79..28cd7e7 100644 --- a/SkeletonEditingPlugin.cc +++ b/SkeletonEditingPlugin.cc @@ -271,7 +271,7 @@ void SkeletonEditingPlugin::slotMouseWheelEvent(QWheelEvent * _event, const std: return; // compute the manipulator size modifier based on the mouse wheel change - manip_size_modifier_ = manip_size_modifier_ - (float)_event->delta() / 120.0 * 0.1; + manip_size_modifier_ = manip_size_modifier_ - (float)_event->angleDelta().y() / 120.0 * 0.1; // Resize all manipulators based on the modifier on all objects for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS) ; o_it != PluginFunctions::objectsEnd(); ++o_it) -- GitLab