mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-29 19:10:42 +01:00
Frictions: display reach name in addition to the rk in combobox
This commit is contained in:
1 parent
4d9c4cb5d0
commit
03979a8bea
1 file changed
+13
-3
@@ -105,9 +105,19 @@ class ComboBoxDelegate(QItemDelegate):
|
||||
strickler
|
||||
)
|
||||
elif self._mode == "rk":
|
||||
self.editor.addItems(
|
||||
list(map(str, self._data.reach.get_rk()))
|
||||
)
|
||||
if self._data is None:
|
||||
self.editor.addItems(
|
||||
["-"]
|
||||
)
|
||||
else:
|
||||
self.editor.addItems(
|
||||
list(
|
||||
map(
|
||||
lambda p: p.display_name(),
|
||||
self._data.reach.profiles
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
self.editor.setCurrentText(str(index.data(Qt.DisplayRole)))
|
||||
return self.editor
|
||||
|
||||
Reference in new issue
Block a user