From 5f8104efea4d4a433e5e38e6ec9b2b88aa286d0b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 27 Mar 2020 20:43:35 -0500 Subject: [PATCH] [nostalgia/core/studio] Make color selection table uneditable --- src/nostalgia/core/studio/tilesheeteditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nostalgia/core/studio/tilesheeteditor.cpp b/src/nostalgia/core/studio/tilesheeteditor.cpp index b482f0a0..1712b71b 100644 --- a/src/nostalgia/core/studio/tilesheeteditor.cpp +++ b/src/nostalgia/core/studio/tilesheeteditor.cpp @@ -614,9 +614,13 @@ void TileSheetEditor::setColorTable() { hexCode->setText(hexColors[i]); hexCode->setFont(QFont("monospace")); tbl->setItem(i, 0, hexCode); + auto hi = tbl->item(i, 0); + hi->setFlags(hi->flags() & ~Qt::ItemIsEditable); auto color = new QTableWidgetItem; color->setBackground(QColor(hexColors[i])); tbl->setItem(i, 1, color); + auto ci = tbl->item(i, 1); + ci->setFlags(ci->flags() & ~Qt::ItemIsEditable); } }