mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
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)
This commit is contained in:
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…
x
Reference in New Issue
Block a user