Change the cell edit selection behaviour of the nested tables. Also auto-expand the enum delegate selections (both main table as well as nested table in the dialogue subview)

test
cc9cii 10 years ago
parent f88be67556
commit 5e84858c0b

@ -444,6 +444,8 @@ void CSVWorld::EditWidget::remake(int row)
NestedTable* table = new NestedTable(mDocument, mNestedModels.back(), this);
// FIXME: does not work well when enum delegates are used
//table->resizeColumnsToContents();
table->setEditTriggers(QAbstractItemView::CurrentChanged);
table->setSelectionBehavior(QAbstractItemView::SelectItems);
QLabel* label =

@ -88,6 +88,7 @@ void CSVWorld::EnumDelegate::setEditorData (QWidget *editor, const QModelIndex&
if (mValues[i].first==value)
{
comboBox->setCurrentIndex (i);
comboBox->showPopup();
break;
}
}

Loading…
Cancel
Save