1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-24 23: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:
Stanislav Bas 2015-08-02 22:53:40 +03:00 committed by cc9cii
parent 7a927eec79
commit c0d714adb6

View file

@ -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));