diff widgets/KeyReference.h @ 740:a31c8ee2e17e tonioni

Allow registering an alternative shortcut using QKeySequence so as to get the right native string
author Chris Cannam
date Thu, 06 Mar 2014 14:27:59 +0000
parents 5f3f5c1e23e8
children 05d614f6e46d
line wrap: on
line diff
--- a/widgets/KeyReference.h	Thu Mar 06 14:03:42 2014 +0000
+++ b/widgets/KeyReference.h	Thu Mar 06 14:27:59 2014 +0000
@@ -20,6 +20,7 @@
 #include <QString>
 #include <vector>
 #include <map>
+#include <QKeySequence>
 
 class QAction;
 class QTextEdit;
@@ -38,9 +39,11 @@
 
     void registerShortcut(QAction *, QString overrideName = "");
     void registerAlternativeShortcut(QAction *, QString alternative);
+    void registerAlternativeShortcut(QAction *, QKeySequence alternative);
 
     void registerShortcut(QString actionName, QString shortcut, QString tipText);
     void registerAlternativeShortcut(QString actionName, QString alternative);
+    void registerAlternativeShortcut(QString actionName, QKeySequence alternative);
 
     void show();
     void hide();