PIVariantEdit ready but widgets fullEditMode

This commit is contained in:
2022-12-16 16:26:16 +03:00
parent 4bb4e87cc2
commit ed9b4a950c
10 changed files with 413 additions and 51 deletions

View File

@@ -65,6 +65,7 @@ bool PIValueTreeEditParameters::showFor(PIValueTree & vt) {
checkHidden->setChecked(vt.attribute(Attribute::hidden, false).toBool());
checkReadOnly->setChecked(vt.attribute(Attribute::readOnly, false).toBool());
checkLabel->setChecked(vt.attribute(Attribute::isLabel, false).toBool());
lineComment->setText(PI2QString(vt.comment()));
createAttributes(ve_attr, layoutAttributes, vt.attributes());
if (exec() != QDialog::Accepted) return false;
@@ -76,6 +77,7 @@ bool PIValueTreeEditParameters::showFor(PIValueTree & vt) {
vt.setValue(var);
}
applyAttributes(vt);
vt.setComment(Q2PIString(lineComment->text()));
return true;
}