Disables all children of the properties view.
@@ -245,6 +245,13 @@ OBSPropertiesView::OBSPropertiesView(OBSData settings_, const char *type_,
Qt::QueuedConnection);
}
+void OBSPropertiesView::SetDisabled(bool disabled)
+{
+ for (auto child : findChildren<QWidget *>()) {
+ child->setDisabled(disabled);
+ }
+}
+
void OBSPropertiesView::resizeEvent(QResizeEvent *event)
{
emit PropertiesResized();
@@ -208,6 +208,8 @@ public:
RefreshProperties();
+ void SetDisabled(bool disabled);
#define Def_IsObject(type) \
inline bool IsObject(obs_##type##_t *type) const \
{ \