add QAD valuetreeeditor util
This commit is contained in:
@@ -49,12 +49,14 @@ PIValueTree PIValueTreeEdit::value() const {
|
||||
|
||||
|
||||
void PIValueTreeEdit::setGroupingEnabled(bool yes) {
|
||||
applyValues();
|
||||
is_grouping = yes;
|
||||
build();
|
||||
}
|
||||
|
||||
|
||||
void PIValueTreeEdit::setFullEditMode(bool yes) {
|
||||
applyValues();
|
||||
is_full_edit = yes;
|
||||
build();
|
||||
}
|
||||
@@ -121,12 +123,12 @@ void PIValueTreeEdit::build() {
|
||||
grid->create_edit_buttons = false;
|
||||
removeAll();
|
||||
// piCout << source.attributes().value(Attribute::arrayType) << array_type;
|
||||
grid->button_add->hide();
|
||||
if (current.isArray()) {
|
||||
widget_array = new QWidget();
|
||||
ui_array->setupUi(widget_array);
|
||||
applyArrayAttributes();
|
||||
ui_array->layoutArray->addWidget(grid);
|
||||
grid->button_add->hide();
|
||||
grid->show();
|
||||
uint array_type = PIVariant::typeIDFromName(current.attribute(Attribute::arrayType).toString());
|
||||
int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user