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 27, 2011
1 parent 5474c78 commit 9cf20787416e3fee83f22e060ace0d097a550e88
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 9cf2078

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