Qt: Fix advanced setting text being editable
This commit is contained in:
parent
9bb278b166
commit
1e6d50e4dc
|
@ -13,6 +13,7 @@ static void addBooleanTweakOption(QtHostInterface* host_interface, QTableWidget*
|
|||
table->insertRow(row);
|
||||
|
||||
QTableWidgetItem* name_item = new QTableWidgetItem(name);
|
||||
name_item->setFlags(name_item->flags() & ~(Qt::ItemIsEditable | Qt::ItemIsSelectable));
|
||||
table->setItem(row, 0, name_item);
|
||||
|
||||
QCheckBox* cb = new QCheckBox(table);
|
||||
|
|
Loading…
Reference in New Issue