From 7ccfe8de10c33f9c2b9b3dd71eef3f28d3451235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Carrillo?= Date: Wed, 3 Nov 2021 17:28:53 -0500 Subject: [PATCH] [plugins] In dependencies dialog, make sure column Name's width is enough to show the whole plugin name --- .../qgsplugindependenciesdialog.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/python/pyplugin_installer/qgsplugindependenciesdialog.py b/python/pyplugin_installer/qgsplugindependenciesdialog.py index e878cd6ec1a5..fc5fa75ef204 100644 --- a/python/pyplugin_installer/qgsplugindependenciesdialog.py +++ b/python/pyplugin_installer/qgsplugindependenciesdialog.py @@ -30,12 +30,12 @@ def __init__(self, plugin_name, to_install, to_upgrade, not_found, parent=None): :param plugin_name: the name of the parent plugin :type plugin_name: str - :param to_install: list of plugin IDs that needs to be installed - :type to_install: list - :param to_upgrade: list of plugin IDs that needs to be upgraded - :type to_upgrade: list - :param not_found: list of plugin IDs that are not found (unavailable) - :type not_found: list + :param to_install: dict of plugins that need to be installed, keyed by plugin name + :type to_install: dict + :param to_upgrade: dict of plugins that need to be upgraded, keyed by plugin name + :type to_upgrade: dict + :param not_found: dict of plugins that were not found (unavailable), keyed by plugin name + :type not_found: dict :param parent: parent object, defaults to None :param parent: QWidget, optional """ @@ -62,6 +62,7 @@ def _make_row(data, i, name): widget.action = data['action'] widget.use_stable_version = data['use_stable_version'] self.pluginList.setCellWidget(i, 0, widget) + self.pluginList.resizeColumnToContents(0) widget = QtWidgets.QTableWidgetItem(_display(data['version_installed'])) widget.setTextAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter) self.pluginList.setItem(i, 1, widget)