|
|
|
@ -121,18 +121,18 @@ void Katapult::initAccel(TQWidget *parent)
|
|
|
|
|
globalAccel->readSettings();
|
|
|
|
|
globalAccel->updateConnections();
|
|
|
|
|
|
|
|
|
|
actions = new KActionCollection(parent);
|
|
|
|
|
actions = new TDEActionCollection(parent);
|
|
|
|
|
actionCollection()->clear();
|
|
|
|
|
|
|
|
|
|
contextMenu()->clear();
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Execute"), "exec", Key_Return, TQT_TQOBJECT(this), TQT_SLOT(execute()), actions, "execute");
|
|
|
|
|
new KAction(i18n("Clear"), "editclear", Key_Left, TQT_TQOBJECT(this), TQT_SLOT(clearQuery()), actions, "clear");
|
|
|
|
|
new KAction(i18n("Close"), "fileclose", Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(hideLauncher()), actions, "close");
|
|
|
|
|
new KAction(i18n("Complete Query"), "next", Key_Right, TQT_TQOBJECT(this), TQT_SLOT(completeQuery()), actions, "complete_query");
|
|
|
|
|
new KAction(i18n("Show Context Menu"), "menu", CTRL+Key_C, TQT_TQOBJECT(this), TQT_SLOT(showContextMenu()), actions, "show_menu");
|
|
|
|
|
new TDEAction(i18n("Execute"), "exec", Key_Return, TQT_TQOBJECT(this), TQT_SLOT(execute()), actions, "execute");
|
|
|
|
|
new TDEAction(i18n("Clear"), "editclear", Key_Left, TQT_TQOBJECT(this), TQT_SLOT(clearQuery()), actions, "clear");
|
|
|
|
|
new TDEAction(i18n("Close"), "fileclose", Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(hideLauncher()), actions, "close");
|
|
|
|
|
new TDEAction(i18n("Complete Query"), "next", Key_Right, TQT_TQOBJECT(this), TQT_SLOT(completeQuery()), actions, "complete_query");
|
|
|
|
|
new TDEAction(i18n("Show Context Menu"), "menu", CTRL+Key_C, TQT_TQOBJECT(this), TQT_SLOT(showContextMenu()), actions, "show_menu");
|
|
|
|
|
|
|
|
|
|
KAction *actGlobAccel = KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(showGlobalShortcutsDialog()), actions);
|
|
|
|
|
TDEAction *actGlobAccel = KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(showGlobalShortcutsDialog()), actions);
|
|
|
|
|
actGlobAccel->setText(i18n("Configure &Global Shortcuts..."));
|
|
|
|
|
actGlobAccel->plug((TQWidget *) contextMenu());
|
|
|
|
|
|
|
|
|
|