UI: Add OBSPropertiesView::SetDisabled

Disables all children of the properties view.
This commit is contained in:
Ruwen Hahn 2024-04-17 13:21:13 +02:00 committed by Ryan Foster
parent 2007b4b844
commit 42a3f903a9
2 changed files with 9 additions and 0 deletions

View file

@ -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();

View file

@ -208,6 +208,8 @@ public:
RefreshProperties();
}
void SetDisabled(bool disabled);
#define Def_IsObject(type) \
inline bool IsObject(obs_##type##_t *type) const \
{ \