Skip to content
Permalink
Browse files

Fix QTreeWidget.resizeColumnToContents() issue observed in PyQt4.8.3 …

…@ Debian
  • Loading branch information
borysiasty authored and wonder-sk committed Aug 29, 2011
1 parent 8f37774 commit 7c56110d40e40ba4b618946fd45692595a84b2f8
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/plugin_installer/installer_gui.py
@@ -529,6 +529,9 @@ def addItem(p):
self.setWindowTitle(self.tr("QGIS Python Plugin Installer") + self.tr(" - %d plugins available" % len(plugins.all())))
self.buttonUpgradeAll.setEnabled( len(self.upgradeablePlugins) )

# initially, keep insert order
self.treePlugins.sortItems(100,Qt.AscendingOrder)

# resize the columns
for i in [0,1,2,3,4,5]:
self.treePlugins.resizeColumnToContents(i)
@@ -537,8 +540,6 @@ def addItem(p):
self.treePlugins.setColumnWidth(i, 260)
if self.treePlugins.columnWidth(3) > 560:
self.treePlugins.setColumnWidth(3, 560)
# initially, keep order of inserting
self.treePlugins.sortItems(100,Qt.AscendingOrder)


# ----------------------------------------- #

0 comments on commit 7c56110

Please sign in to comment.
You can’t perform that action at this time.