summaryrefslogtreecommitdiff
path: root/plugins/Shortcuts.py
diff options
context:
space:
mode:
authorjerous <jerous@gmail.com>2008-11-15 23:31:03 +0100
committerjerous <jerous@gmail.com>2008-11-15 23:31:03 +0100
commite0f52b88b86b142be9c4f605ba815d6453297b9a (patch)
tree74ce2bc3f8c937376eab62db36eb19752fe031ec /plugins/Shortcuts.py
parente64ef41273dbc4c7dc6e7fc524af00331ff2b740 (diff)
Shortcuts: settingswidget for showing current keybinding
Diffstat (limited to 'plugins/Shortcuts.py')
-rw-r--r--plugins/Shortcuts.py12
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],
+ ]