bugfix (#241)
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 1m36s
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 1m36s
Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de> Reviewed-on: #241
This commit is contained in:
parent
24640d374e
commit
8d3ab75c97
@ -66,10 +66,10 @@ class PropTable(QtWidgets.QTableWidget):
|
|||||||
self.blockSignals(True)
|
self.blockSignals(True)
|
||||||
for k, v in prop.items():
|
for k, v in prop.items():
|
||||||
value_item = QtWidgets.QTableWidgetItem('')
|
value_item = QtWidgets.QTableWidgetItem('')
|
||||||
value_item.setData(QtCore.Qt.ItemDataRoleDisplayRole, v)
|
value_item.setData(QtCore.Qt.ItemDataRole.DisplayRole, v)
|
||||||
|
|
||||||
key_item = QtWidgets.QTableWidgetItem(k)
|
key_item = QtWidgets.QTableWidgetItem(k)
|
||||||
key_item.setFlags(QtCore.Qt.ItemDataRole.NoItemFlags)
|
key_item.setFlags(QtCore.Qt.ItemFlag.NoItemFlags)
|
||||||
key_item.setForeground(QtGui.QBrush(QtGui.QColor(0, 0, 0)))
|
key_item.setForeground(QtGui.QBrush(QtGui.QColor(0, 0, 0)))
|
||||||
|
|
||||||
self.setRowCount(self.rowCount()+1)
|
self.setRowCount(self.rowCount()+1)
|
||||||
|
Loading…
Reference in New Issue
Block a user