diff --git a/BuiltInSearchResults.py b/BuiltInSearchResults.py index 8f3ebf0..0aead07 100644 --- a/BuiltInSearchResults.py +++ b/BuiltInSearchResults.py @@ -13,9 +13,9 @@ SearchResults.registerResultProvider('document', SearchResults.registerResultProvider('toolbar', getItemGroupsCached = lambda: __import__('ResultsToolbar').toolbarResultsProvider(), getItemGroupsUncached = lambda: []) -SearchResults.registerResultProvider('toolbar', - getItemGroupsCached = lambda: [], - getItemGroupsUncached = lambda: __import__('ResultsPreferences').paramResultsProvider()) +SearchResults.registerResultProvider('param', + getItemGroupsCached = lambda: __import__('ResultsPreferences').paramResultsProvider(), + getItemGroupsUncached = lambda: []) SearchResults.registerResultHandler('refreshTools', action = lambda nfo: __import__('ResultsRefreshTools').refreshToolsAction(nfo), diff --git a/ResultsPreferences.py b/ResultsPreferences.py index ea9b4f1..d74ebc8 100644 --- a/ResultsPreferences.py +++ b/ResultsPreferences.py @@ -8,6 +8,7 @@ genericToolIcon = QtGui.QIcon(QtGui.QIcon(os.path.dirname(__file__) + '/Tango-To def getParam(grpPath, type_, name): return { + # TODO: use letter icon based on the type, as the preferences editor does 'icon': genericToolIcon, 'text': name, 'toolTip': '',