From bef050fc7e61ffdc35e45e833677bcf04806129a Mon Sep 17 00:00:00 2001 From: fire Date: Mon, 12 Feb 2018 01:40:34 +0100 Subject: [PATCH 1/3] fix QtWheelEvent propagation as described here http://www.setnode.com/blog/mouse-wheel-events-event-filters-and-qscrollarea/ --- sdrgui/gui/valuedial.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdrgui/gui/valuedial.cpp b/sdrgui/gui/valuedial.cpp index 64fe437dd..e76e3c861 100644 --- a/sdrgui/gui/valuedial.cpp +++ b/sdrgui/gui/valuedial.cpp @@ -344,6 +344,8 @@ void ValueDial::wheelEvent(QWheelEvent* event) } setValue(m_valueNew); emit changed(m_valueNew); + event->accept(); + } } From 30111bdca0f6f4154fca4b71ce13e9b7315652b4 Mon Sep 17 00:00:00 2001 From: fire Date: Mon, 12 Feb 2018 01:43:04 +0100 Subject: [PATCH 2/3] fix QtWheelEvent propagation as described here http://www.setnode.com/blog/mouse-wheel-events-event-filters-and-qscrollarea/ --- sdrgui/gui/valuedialz.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrgui/gui/valuedialz.cpp b/sdrgui/gui/valuedialz.cpp index 4c0e837fd..c02b1f6a5 100644 --- a/sdrgui/gui/valuedialz.cpp +++ b/sdrgui/gui/valuedialz.cpp @@ -428,6 +428,7 @@ void ValueDialZ::wheelEvent(QWheelEvent* event) setValue(m_valueNew); emit changed(m_valueNew); + event->accept(); } } From 9bdf673f90d64e03520aa48753e3dd3b2420c732 Mon Sep 17 00:00:00 2001 From: fire Date: Mon, 12 Feb 2018 01:44:24 +0100 Subject: [PATCH 3/3] remove line --- sdrgui/gui/valuedial.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/sdrgui/gui/valuedial.cpp b/sdrgui/gui/valuedial.cpp index e76e3c861..9e4cd1e97 100644 --- a/sdrgui/gui/valuedial.cpp +++ b/sdrgui/gui/valuedial.cpp @@ -345,7 +345,6 @@ void ValueDial::wheelEvent(QWheelEvent* event) setValue(m_valueNew); emit changed(m_valueNew); event->accept(); - } }