1 # define DEF( name, key ) \
2 QAction* a__ = actionCollection->addAction( name ); \
3 a = qobject_cast<KAction*>(a__); \
4 a->setText( i18n(name) ); \
5 qobject_cast<KAction*>( a) ->setGlobalShortcut(KShortcut(key));
7 DEF( I18N_NOOP("Switch to Next Keyboard Layout"), Qt::ALT
+Qt::CTRL
+Qt::Key_K
);