mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 16:06:44 +00:00
Allow disabled nested tables to be scrollable
This commit is contained in:
parent
4b178f6f3d
commit
829345257c
1 changed files with 6 additions and 1 deletions
|
@ -583,8 +583,13 @@ void CSVWorld::EditWidget::remake(int row)
|
||||||
table->resizeColumnsToContents();
|
table->resizeColumnsToContents();
|
||||||
if (!editable)
|
if (!editable)
|
||||||
{
|
{
|
||||||
|
// Make table look disabled without actually disabling.
|
||||||
|
// This allows user to scroll through table without
|
||||||
|
// being able to edit items.
|
||||||
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
table->setEnabled(false);
|
table->setSelectionMode(QAbstractItemView::NoSelection);
|
||||||
|
table->setFocusPolicy(Qt::NoFocus);
|
||||||
|
table->setStyleSheet("background-color: whitesmoke");
|
||||||
}
|
}
|
||||||
|
|
||||||
int rows = mTable->rowCount(mTable->index(row, i));
|
int rows = mTable->rowCount(mTable->index(row, i));
|
||||||
|
|
Loading…
Reference in a new issue