Skip to content

Commit

Permalink
[plugins] In dependencies dialog, make sure column Name's width is en…
Browse files Browse the repository at this point in the history
…ough to show the whole plugin name
  • Loading branch information
gacarrillor authored and github-actions[bot] committed Nov 4, 2021
1 parent 194a38b commit 7ccfe8d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions python/pyplugin_installer/qgsplugindependenciesdialog.py
Expand Up @@ -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
"""
Expand All @@ -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)
Expand Down

0 comments on commit 7ccfe8d

Please sign in to comment.