UI: Add 'Changed' signal to properties view

This commit is contained in:
jp9000 2015-02-03 20:53:37 -08:00
parent baaa061344
commit cb70a531b7
2 changed files with 9 additions and 0 deletions

View File

@ -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",

View File

@ -87,9 +87,11 @@ private:
public slots:
void ReloadProperties();
void RefreshProperties();
void SignalChanged();
signals:
void PropertiesResized();
void Changed();
public:
OBSPropertiesView(OBSData settings, void *obj,