diff options
author | jerous <jerous@gmail.com> | 2008-11-15 23:31:03 +0100 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-11-15 23:31:03 +0100 |
commit | e0f52b88b86b142be9c4f605ba815d6453297b9a (patch) | |
tree | 74ce2bc3f8c937376eab62db36eb19752fe031ec /plugins/Shortcuts.py | |
parent | e64ef41273dbc4c7dc6e7fc524af00331ff2b740 (diff) |
Shortcuts: settingswidget for showing current keybinding
Diffstat (limited to 'plugins/Shortcuts.py')
-rw-r--r-- | plugins/Shortcuts.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Shortcuts.py b/plugins/Shortcuts.py index 79c43f6..e43731f 100644 --- a/plugins/Shortcuts.py +++ b/plugins/Shortcuts.py @@ -65,3 +65,15 @@ class pluginShortcuts(Plugin): monty.resume() + def _getSettings(self): + txt=QtGui.QTextEdit() + txt.setReadOnly(True) + txt.insertPlainText("Keybindings (read-only)\n") + for entry in self.keys: + name=entry[0] + key=entry[1] + + txt.insertPlainText("%s\t%s\n"%(name, QtGui.QKeySequence(key).toString())) + return [ + ['', 'Keybindings', 'Current keybindings', txt], + ] |