mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-24 22:09:42 +00:00
Activate editing of nested table cells by a double click
Conflicts: apps/opencs/view/world/dialoguesubview.cpp
This commit is contained in:
parent
7a927eec79
commit
c0d714adb6
1 changed files with 3 additions and 2 deletions
|
@ -571,8 +571,9 @@ void CSVWorld::EditWidget::remake(int row)
|
||||||
table->setStyleSheet("QTableView { color: gray; }");
|
table->setStyleSheet("QTableView { color: gray; }");
|
||||||
table->horizontalHeader()->setStyleSheet("QHeaderView { color: gray; }");
|
table->horizontalHeader()->setStyleSheet("QHeaderView { color: gray; }");
|
||||||
}
|
}
|
||||||
else
|
// Uncomment below two lines to activate editing of nested table cells by a single click
|
||||||
table->setEditTriggers(QAbstractItemView::SelectedClicked | QAbstractItemView::CurrentChanged);
|
//else
|
||||||
|
//table->setEditTriggers(QAbstractItemView::SelectedClicked | QAbstractItemView::CurrentChanged);
|
||||||
table->resizeColumnsToContents();
|
table->resizeColumnsToContents();
|
||||||
|
|
||||||
int rows = mTable->rowCount(mTable->index(row, i));
|
int rows = mTable->rowCount(mTable->index(row, i));
|
||||||
|
|
Loading…
Reference in a new issue