UI: Add 'Changed' signal to properties view
This commit is contained in:
parent
baaa061344
commit
cb70a531b7
@ -514,6 +514,11 @@ void OBSPropertiesView::AddProperty(obs_property_t *property,
|
||||
lastWidget = widget;
|
||||
}
|
||||
|
||||
void OBSPropertiesView::SignalChanged()
|
||||
{
|
||||
emit Changed();
|
||||
}
|
||||
|
||||
void WidgetInfo::BoolChanged(const char *setting)
|
||||
{
|
||||
QCheckBox *checkbox = static_cast<QCheckBox*>(widget);
|
||||
@ -716,6 +721,8 @@ void WidgetInfo::ControlChanged()
|
||||
if (view->callback)
|
||||
view->callback(view->obj, view->settings);
|
||||
|
||||
view->SignalChanged();
|
||||
|
||||
if (obs_property_modified(property, view->settings)) {
|
||||
view->lastFocused = setting;
|
||||
QMetaObject::invokeMethod(view, "RefreshProperties",
|
||||
|
@ -87,9 +87,11 @@ private:
|
||||
public slots:
|
||||
void ReloadProperties();
|
||||
void RefreshProperties();
|
||||
void SignalChanged();
|
||||
|
||||
signals:
|
||||
void PropertiesResized();
|
||||
void Changed();
|
||||
|
||||
public:
|
||||
OBSPropertiesView(OBSData settings, void *obj,
|
||||
|
Loading…
x
Reference in New Issue
Block a user