forked from teamnwah/openmw-tes3coop
Activate editing of nested table cells by a double click
This commit is contained in:
parent
1590a04d03
commit
6b3de5c720
1 changed files with 0 additions and 2 deletions
|
@ -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…
Reference in a new issue