mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-06-30 16:43:31 +00:00
UI: Add OBSPropertiesView::SetDisabled
Disables all children of the properties view.
This commit is contained in:
parent
2007b4b844
commit
42a3f903a9
|
@ -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 \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue