1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00

Activate editing of nested table cells by a double click

This commit is contained in:
Stanislav Bas 2015-08-02 22:53:40 +03:00
parent 1590a04d03
commit 6b3de5c720

View File

@ -570,8 +570,6 @@ void CSVWorld::EditWidget::remake(int row)
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
table->setEnabled(false);
}
else
table->setEditTriggers(QAbstractItemView::SelectedClicked | QAbstractItemView::CurrentChanged);
int rows = mTable->rowCount(mTable->index(row, i));
int rowHeight = (rows == 0) ? table->horizontalHeader()->height() : table->rowHeight(0);