Mercurial > hg > svgui
comparison widgets/KeyReference.cpp @ 739:dfe543438d52 tonioni
Use NativeText in key reference (converting Ctrl to weird squiggle on Mac etc)
author | Chris Cannam |
---|---|
date | Thu, 06 Mar 2014 14:03:42 +0000 |
parents | d632a1e87018 |
children | a31c8ee2e17e |
comparison
equal
deleted
inserted
replaced
738:d26545a2a02d | 739:dfe543438d52 |
---|---|
47 KeyReference::registerShortcut(QAction *action, QString overrideName) | 47 KeyReference::registerShortcut(QAction *action, QString overrideName) |
48 { | 48 { |
49 QString name = action->text(); | 49 QString name = action->text(); |
50 if (overrideName != "") name = overrideName; | 50 if (overrideName != "") name = overrideName; |
51 | 51 |
52 QString shortcut = action->shortcut().toString(); | 52 QString shortcut = action->shortcut().toString(QKeySequence::NativeText); |
53 QString tip = action->statusTip(); | 53 QString tip = action->statusTip(); |
54 | 54 |
55 registerShortcut(name, shortcut, tip); | 55 registerShortcut(name, shortcut, tip); |
56 } | 56 } |
57 | 57 |