comparison widgets/KeyReference.cpp @ 640:c6d705bf1672

Merge from branch "qt5". This revision actually builds with Qt4 (late releases) or Qt5, though it will warn on configure with Qt4.
author Chris Cannam
date Tue, 14 May 2013 12:36:43 +0100
parents d632a1e87018
children dfe543438d52
comparison
equal deleted inserted replaced
632:9d8f6552014d 640:c6d705bf1672
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(); 52 QString shortcut = action->shortcut().toString();
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