From 5e2392b04b6920613b6e014e101ca76f6635dcc3 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Sat, 10 Feb 2024 17:45:03 +0100 Subject: [PATCH] bugfix --- 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) -- 2.39.5