From 8aba1b4e1d6604966b96b9787d8cfebb84a47b25 Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Thu, 30 Nov 2023 12:55:03 +0100 Subject: [PATCH] Display column content, the definitions is not using a list yet #476 --- lizmap/resources/ui/ui_form_locate_layer.ui | 4 ++-- lizmap/table_manager/base.py | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lizmap/resources/ui/ui_form_locate_layer.ui b/lizmap/resources/ui/ui_form_locate_layer.ui index 18619f25..b4f0687f 100755 --- a/lizmap/resources/ui/ui_form_locate_layer.ui +++ b/lizmap/resources/ui/ui_form_locate_layer.ui @@ -6,8 +6,8 @@ 0 0 - 433 - 239 + 518 + 350 diff --git a/lizmap/table_manager/base.py b/lizmap/table_manager/base.py index 5e730577..c1a9ad94 100755 --- a/lizmap/table_manager/base.py +++ b/lizmap/table_manager/base.py @@ -394,6 +394,12 @@ def _edit_row(self, row, data): labels.append(item_enum.value['data']) value = ','.join(labels) cell.setText(value) + else: + # Some settings are a list, but not using a Python enum yet + # Form filter by instance commit d1bca9c5c1f626893001e5824196dec5fe9a6c9a + # It's not possible for now to have the human display name + # and the icon + cell.setText(value) elif input_type == InputType.SpinBox: unit = self.definitions.layer_config[key].get('unit')