From d2e998962f4fadab6aab3090359bd1489d3d5137 Mon Sep 17 00:00:00 2001 From: copper Date: Fri, 27 May 2022 21:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/export_to/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/export_to/main.py b/plugins/export_to/main.py index 08514e6..dbae49d 100644 --- a/plugins/export_to/main.py +++ b/plugins/export_to/main.py @@ -23,11 +23,8 @@ class ExportDialog(QDialog): for layer in Project().layers.values(): for result_layer in layer.layers: if isinstance(result_layer, ResultPointLayer): - result_layer_select.addItem( layer.name[:5] + '-' + result_layer.name, result_layer) + result_layer_select.addItem(QIcon(":/icons/layer.png"), result_layer.name, result_layer) - for i in range(result_layer_select.count() - 1): - result_layer_select.setItemIcon(i + 1, QIcon(":/icons/layer.png")) - def on_result_layer_select(index): self.result_layer = result_layer_select.currentData()