UI: Ignore wheelEvent for properties

Ignore wheelEvent using subclass
slider,spinbox,combobox with eventhandlers:
wheelEvent - ignore if widget is not focused,
leaveEvent - clear focus when mouse leaves event.

Use these new subclass widgets in properties
to ignore wheelEvent when scrolling.
This commit is contained in:
akapar
2019-04-06 20:56:52 -04:00
parent a345b50966
commit 9249403c96
12 changed files with 149 additions and 10 deletions

View File

@@ -1,8 +1,9 @@
#pragma once
#include <QSlider>
#include "slider-ignorewheel.hpp"
class DoubleSlider : public QSlider {
class DoubleSlider : public SliderIgnoreScroll {
Q_OBJECT
double minVal, maxVal, minStep;