Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 7c56110
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/plugin_installer/installer_gui.py
Expand Up @@ -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)
Expand All @@ -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)


# ----------------------------------------- #
Expand Down

0 comments on commit 7c56110

Please sign in to comment.