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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user