When changing a property make sure to set default to false, so it's actually saved!
This commit is contained in:
parent
12d33f1024
commit
2a6e5115e1
1 changed files with 8 additions and 0 deletions
|
@ -280,6 +280,8 @@ void PropertyEditorWidget::onBoolValueChanged( QtProperty *p, bool v )
|
||||||
pp->String = "true";
|
pp->String = "true";
|
||||||
else
|
else
|
||||||
pp->String = "false";
|
pp->String = "false";
|
||||||
|
|
||||||
|
pp->Default = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertyEditorWidget::onStringValueChanged( QtProperty *p, const QString &v )
|
void PropertyEditorWidget::onStringValueChanged( QtProperty *p, const QString &v )
|
||||||
|
@ -293,6 +295,7 @@ void PropertyEditorWidget::onStringValueChanged( QtProperty *p, const QString &v
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pp->String = v.toUtf8().constData();
|
pp->String = v.toUtf8().constData();
|
||||||
|
pp->Default = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertyEditorWidget::onEnumValueChanged( QtProperty *p, int v )
|
void PropertyEditorWidget::onEnumValueChanged( QtProperty *p, int v )
|
||||||
|
@ -306,6 +309,7 @@ void PropertyEditorWidget::onEnumValueChanged( QtProperty *p, int v )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pp->String = p->valueText().toUtf8().constData();
|
pp->String = p->valueText().toUtf8().constData();
|
||||||
|
pp->Default = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertyEditorWidget::onStrArrValueChanged( QtProperty *p, const QString &v )
|
void PropertyEditorWidget::onStrArrValueChanged( QtProperty *p, const QString &v )
|
||||||
|
@ -326,6 +330,8 @@ void PropertyEditorWidget::onStrArrValueChanged( QtProperty *p, const QString &v
|
||||||
{
|
{
|
||||||
pp->StringArray.push_back( itr.next().toUtf8().constData() );
|
pp->StringArray.push_back( itr.next().toUtf8().constData() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pp->Default = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertyEditorWidget::onConstStrArrValueChanged( QtProperty *p, const QString &v )
|
void PropertyEditorWidget::onConstStrArrValueChanged( QtProperty *p, const QString &v )
|
||||||
|
@ -346,6 +352,8 @@ void PropertyEditorWidget::onConstStrArrValueChanged( QtProperty *p, const QStri
|
||||||
{
|
{
|
||||||
pp->StringArray.push_back( itr.next().toUtf8().constData() );
|
pp->StringArray.push_back( itr.next().toUtf8().constData() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pp->Default = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue