[Mod]disable edit in result monitor table

This commit is contained in:
vn.py 2019-04-19 22:49:36 +08:00
parent 4c3c80acb7
commit e73c12d7d5

View File

@ -342,6 +342,7 @@ class StatisticsMonitor(QtWidgets.QTableWidget):
self.horizontalHeader().setSectionResizeMode(
QtWidgets.QHeaderView.Stretch
)
self.setEditTriggers(self.NoEditTriggers)
for row, key in enumerate(self.KEY_NAME_MAP.keys()):
cell = QtWidgets.QTableWidgetItem()
@ -704,6 +705,7 @@ class OptimizationResultMonitor(QtWidgets.QDialog):
table.setColumnCount(2)
table.setRowCount(len(self.result_values))
table.setHorizontalHeaderLabels(["参数", self.target_display])
table.setEditTriggers(table.NoEditTriggers)
table.verticalHeader().setVisible(False)
table.horizontalHeader().setSectionResizeMode(