mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Activate editing of nested table cells by a double click
This commit is contained in:
parent
1590a04d03
commit
6b3de5c720
@ -570,8 +570,6 @@ void CSVWorld::EditWidget::remake(int row)
|
|||||||
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
table->setEnabled(false);
|
table->setEnabled(false);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
table->setEditTriggers(QAbstractItemView::SelectedClicked | QAbstractItemView::CurrentChanged);
|
|
||||||
|
|
||||||
int rows = mTable->rowCount(mTable->index(row, i));
|
int rows = mTable->rowCount(mTable->index(row, i));
|
||||||
int rowHeight = (rows == 0) ? table->horizontalHeader()->height() : table->rowHeight(0);
|
int rowHeight = (rows == 0) ? table->horizontalHeader()->height() : table->rowHeight(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user