PIVariantEdit ready but widgets fullEditMode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user