Qt: Fix advanced setting text being editable

This commit is contained in:
Connor McLaughlin 2020-09-07 21:13:32 +10:00
parent 9bb278b166
commit 1e6d50e4dc

View file

@ -13,6 +13,7 @@ static void addBooleanTweakOption(QtHostInterface* host_interface, QTableWidget*
table->insertRow(row); table->insertRow(row);
QTableWidgetItem* name_item = new QTableWidgetItem(name); QTableWidgetItem* name_item = new QTableWidgetItem(name);
name_item->setFlags(name_item->flags() & ~(Qt::ItemIsEditable | Qt::ItemIsSelectable));
table->setItem(row, 0, name_item); table->setItem(row, 0, name_item);
QCheckBox* cb = new QCheckBox(table); QCheckBox* cb = new QCheckBox(table);