[nostalgia/core/studio] Make color selection table uneditable
This commit is contained in:
parent
5cc96228f4
commit
5f8104efea
@ -614,9 +614,13 @@ void TileSheetEditor::setColorTable() {
|
|||||||
hexCode->setText(hexColors[i]);
|
hexCode->setText(hexColors[i]);
|
||||||
hexCode->setFont(QFont("monospace"));
|
hexCode->setFont(QFont("monospace"));
|
||||||
tbl->setItem(i, 0, hexCode);
|
tbl->setItem(i, 0, hexCode);
|
||||||
|
auto hi = tbl->item(i, 0);
|
||||||
|
hi->setFlags(hi->flags() & ~Qt::ItemIsEditable);
|
||||||
auto color = new QTableWidgetItem;
|
auto color = new QTableWidgetItem;
|
||||||
color->setBackground(QColor(hexColors[i]));
|
color->setBackground(QColor(hexColors[i]));
|
||||||
tbl->setItem(i, 1, color);
|
tbl->setItem(i, 1, color);
|
||||||
|
auto ci = tbl->item(i, 1);
|
||||||
|
ci->setFlags(ci->flags() & ~Qt::ItemIsEditable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user