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

@@ -232,6 +232,9 @@ set(obs_SOURCES
focus-list.cpp
menu-button.cpp
double-slider.cpp
slider-ignorewheel.cpp
comboBox-ignorewheel.cpp
spinBox-ignorewheel.cpp
volume-control.cpp
adv-audio-control.cpp
item-widget-helpers.cpp
@@ -283,6 +286,9 @@ set(obs_HEADERS
display-helpers.hpp
balance-slider.hpp
double-slider.hpp
slider-ignorewheel.hpp
comboBox-ignorewheel.hpp
spinBox-ignorewheel.hpp
focus-list.hpp
menu-button.hpp
mute-checkbox.hpp