summaryrefslogtreecommitdiff
path: root/kberylsettings/plugindialog.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-19 13:03:14 +0000
committernatural <natural>2006-12-19 13:03:14 +0000
commite87833f32ea631dab7391484f0f89bedf669b80c (patch)
tree2a66917ce2bad8f7d6619ebbccf0d37598f12f22 /kberylsettings/plugindialog.py
parent99b44818d60794aae11dca5f67722ab32c98f137 (diff)
downloadkberylsettings-e87833f32ea631dab7391484f0f89bedf669b80c.tar.gz
kberylsettings-e87833f32ea631dab7391484f0f89bedf669b80c.tar.bz2
Support for basic setting saves. Other refactorings and fixes.
Diffstat (limited to 'kberylsettings/plugindialog.py')
-rw-r--r--kberylsettings/plugindialog.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kberylsettings/plugindialog.py b/kberylsettings/plugindialog.py
index dc97831..3b981fe 100644
--- a/kberylsettings/plugindialog.py
+++ b/kberylsettings/plugindialog.py
@@ -7,8 +7,8 @@ from qt import QCheckListItem, QLabel
from kdecore import i18n
from kdeui import KDialogBase, KListView, KMessageBox
-from kberylsettings.lib import Signals
-
+from kberylsettings.lib import Signals, iconLoader
+### try to use KActionSelector
class PluginList(KListView):
""" PluginList -> list view for the select plugins dialog
@@ -19,16 +19,16 @@ class PluginList(KListView):
self.addColumn(i18n('Plugin'))
self.addColumn(i18n('Description'))
- def addPlugins(self, context, loader):
+ def addPlugins(self, context):
""" creates list view items from plugins in context
@param context berylsetting Context instance
- @param loader KIconLoader instance
@return mapping of plugin names and their enabled state
"""
stateMap = {}
active = context.active
count = textlen = 0
+ loader = iconLoader()
for p in context.plugins:
item = QCheckListItem(self, p.ShortDesc, QCheckListItem.CheckBox)
item.setEnabled(not p.isGeneral)
@@ -70,7 +70,7 @@ class PluginDialog(KDialogBase):
self.label = QLabel('Enable or disable plugins below.', main)
self.listView = PluginList(main)
self.connect(self.listView, Signals.itemClicked, self.changePlugin)
- self.pluginMap = self.listView.addPlugins(context, parent.loader)
+ self.pluginMap = self.listView.addPlugins(context)
def changePlugin(self, item):
""" handle a possible change to the plugins checkbox