From b59694c4f0b53e768c95e08778182fd0047cbe2b Mon Sep 17 00:00:00 2001 From: Rob Cutmore Date: Sun, 25 Sep 2016 06:31:28 -0400 Subject: [PATCH] Set tooltip for read-only nested tables --- apps/opencs/view/world/dialoguesubview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/opencs/view/world/dialoguesubview.cpp b/apps/opencs/view/world/dialoguesubview.cpp index b6e8f3766..93be48dc9 100644 --- a/apps/opencs/view/world/dialoguesubview.cpp +++ b/apps/opencs/view/world/dialoguesubview.cpp @@ -583,13 +583,13 @@ void CSVWorld::EditWidget::remake(int row) table->resizeColumnsToContents(); if (!editable) { - // Make table look disabled without actually disabling. - // This allows user to scroll through table without - // being able to edit items. + // Disallow table editing, selection, and focus. + // This allows user to scroll through table but not edit items. + // Disabling table doesn't allow user to scroll. table->setEditTriggers(QAbstractItemView::NoEditTriggers); table->setSelectionMode(QAbstractItemView::NoSelection); table->setFocusPolicy(Qt::NoFocus); - table->setStyleSheet("background-color: whitesmoke"); + table->setToolTip("Currently read-only"); } int rows = mTable->rowCount(mTable->index(row, i));