UI: Add item widget helper functions

These functions are designed to manually delete item widgets within
other widgets to prevent ->deleteLater from being called on them.  This
prevents the item widgets from being stuck in the event queue, and
prevents references to things like sources from being stuck in the event
queue along with them if they're used in the item widget's class or
functions.
This commit is contained in:
jp9000
2015-06-27 18:44:36 -07:00
parent e8f30f222d
commit db9e966e6c
3 changed files with 78 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ set(obs_SOURCES
double-slider.cpp
volume-control.cpp
adv-audio-control.cpp
item-widget-helpers.cpp
visibility-checkbox.cpp
vertical-scroll-area.cpp
visibility-item-widget.cpp
@@ -152,6 +153,7 @@ set(obs_HEADERS
mute-checkbox.hpp
volume-control.hpp
adv-audio-control.hpp
item-widget-helpers.hpp
visibility-checkbox.hpp
vertical-scroll-area.hpp
visibility-item-widget.hpp