Skip to content

Commit

Permalink
make Larry happy: larger icons in plugin installer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 9, 2012
1 parent 9e5762a commit f262caa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/plugin_installer/installer_gui.py
Expand Up @@ -285,6 +285,8 @@ def __init__(self, parent):
self.connect(self.radioPluginType0, SIGNAL("toggled (bool)"), self.changePluginPolicy)
self.connect(self.radioPluginType1, SIGNAL("toggled (bool)"), self.changePluginPolicy)
self.connect(self.radioPluginType2, SIGNAL("toggled (bool)"), self.changePluginPolicy)
# increase default icon size
self.treePlugins.setIconSize(QSize(22, 22))
if repositories.checkingOnStart():
self.checkUpdates.setChecked(Qt.Checked)
else:
Expand Down Expand Up @@ -485,6 +487,8 @@ def addItem(p):
a.setToolTip(0, self.tr("Experimental plugin. Use at own risk"))
a.setData(0, Qt.UserRole, QVariant(0))
else:
# set empty icon to keep row height same for all plugins
a.setIcon(0, QIcon(":/plugins/installer/pluginStable.png"))
a.setData(0, Qt.UserRole, QVariant(1))
if p["error"]:
a.setText(1,statuses[p["error"]])
Expand Down
Binary file modified python/plugins/plugin_installer/pluginExperimental.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added python/plugins/plugin_installer/pluginStable.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions python/plugins/plugin_installer/resources.qrc
Expand Up @@ -6,5 +6,6 @@
<file>repoUnavailable.png</file>
<file>repoConnected.png</file>
<file>pluginExperimental.png</file>
<file>pluginStable.png</file>
</qresource>
</RCC>

0 comments on commit f262caa

Please sign in to comment.