From 8d3ab75c979265bd0aba2f3ac2b7e31b89eb988c Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Sat, 10 Feb 2024 16:46:15 +0000 Subject: [PATCH] bugfix (#241) Co-authored-by: Dominik Demuth Reviewed-on: https://gitea.pkm.physik.tu-darmstadt.de/IPKM/nmreval/pulls/241 --- src/gui_qt/data/datawidget/properties.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_qt/data/datawidget/properties.py b/src/gui_qt/data/datawidget/properties.py index 21e3e2d..cb4266a 100644 --- a/src/gui_qt/data/datawidget/properties.py +++ b/src/gui_qt/data/datawidget/properties.py @@ -66,10 +66,10 @@ class PropTable(QtWidgets.QTableWidget): self.blockSignals(True) for k, v in prop.items(): 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.setFlags(QtCore.Qt.ItemDataRole.NoItemFlags) + key_item.setFlags(QtCore.Qt.ItemFlag.NoItemFlags) key_item.setForeground(QtGui.QBrush(QtGui.QColor(0, 0, 0))) self.setRowCount(self.rowCount()+1)