summaryrefslogtreecommitdiff
path: root/kberylsettings/pluginframe.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-29 11:16:52 +0000
committernatural <natural>2006-12-29 11:16:52 +0000
commit83388f8fa04a23e09111d140f508d22667892202 (patch)
treebb3e1e2614da0a275ad19669fa52d4cb1d716df5 /kberylsettings/pluginframe.py
parente60bfbb3b724d5999d089ed952ae8a43c244e9ae (diff)
downloadkberylsettings-83388f8fa04a23e09111d140f508d22667892202.tar.gz
kberylsettings-83388f8fa04a23e09111d140f508d22667892202.tar.bz2
Added setting type icons, category icons.
More cleanup and docstrings.
Diffstat (limited to 'kberylsettings/pluginframe.py')
-rw-r--r--kberylsettings/pluginframe.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kberylsettings/pluginframe.py b/kberylsettings/pluginframe.py
index 8d81f9e..f096de3 100644
--- a/kberylsettings/pluginframe.py
+++ b/kberylsettings/pluginframe.py
@@ -246,10 +246,10 @@ class IconView(BasicPluginView):
self.iconSize = size
for item in self:
plugin, setting = item.value
- if plugin:
- item.setPixmap(0, plugin.icon(size, self.loader))
+ if setting or not plugin:
+ item.setPixmap(0, Setting.icon(setting, size))
else:
- item.setPixmap(0, Setting.icon(setting, size))
+ item.setPixmap(0, plugin.icon(size, self.loader))
def onItemClick(self, item):
""" emit a signal if a plugin item is selected
@@ -337,7 +337,7 @@ class TreeView(BasicPluginView):
while child:
item.takeItem(child)
child = item.firstChild()
- for key in keys:
+ for key in keys[::-1]:
sub = ValueListViewItem(item, key, (plugin, key))
sub.setPixmap(0, Setting.icon(key, self.iconSize))
return item
@@ -413,7 +413,7 @@ class CategoryView(BasicPluginView):
item = self.findItem(desc, 0)
if not item:
item = CategoryListViewItem(self, desc, (None, None))
- item.setPixmap(0, category.icon(self.iconSize, self.loader))
+ item.setPixmap(0, category.icon(self.iconSize))
return item
def pluginItem(self, plugin, parent):