Friction: combobox in tab for rk

This commit is contained in:
Dylan Jeannin committed 2026-07-20 14:48:19 +02:00
1 parent f9a88a211c
commit 600f86aeb4
2 files changed
+15 -2

No files matched your search

+5 -1
View File
@@ -73,8 +73,12 @@ class ComboBoxDelegate(QItemDelegate):
)
)
)
elif self._mode == "rk":
self.editor.addItems(
list(map(str, self._data.reach.get_rk()))
)
self.editor.setCurrentText(index.data(Qt.DisplayRole))
self.editor.setCurrentText(str(index.data(Qt.DisplayRole)))
return self.editor
def setEditorData(self, editor, index):