Added shortcuts to the Execute, Explain and Explain Analyze context actions.

This commit is contained in:
eelke 2019-02-07 16:53:48 +01:00
parent db735363f7
commit eca8841427

View file

@ -72,18 +72,21 @@ void QueryToolModule::init()
LContextAction wa("Execute", SLOT(execute())); LContextAction wa("Execute", SLOT(execute()));
wa.setMenuLocation("Query/1"); wa.setMenuLocation("Query/1");
wa.setIcon(":/icons/script_go.png"); wa.setIcon(":/icons/script_go.png");
wa.setShortcut(QKeySequence(Qt::Key_F5));
registerContextAction(wa); registerContextAction(wa);
} }
{ {
LContextAction wa("Explain", SLOT(explain())); LContextAction wa("Explain", SLOT(explain()));
wa.setMenuLocation("Query/2"); wa.setMenuLocation("Query/2");
wa.setIcon(":/icons/lightbulb_off.png"); wa.setIcon(":/icons/lightbulb_off.png");
wa.setShortcut(QKeySequence(Qt::Key_F7));
registerContextAction(wa); registerContextAction(wa);
} }
{ {
LContextAction wa("Analyze", SLOT(analyze())); LContextAction wa("Analyze", SLOT(analyze()));
wa.setMenuLocation("Query/1"); wa.setMenuLocation("Query/1");
wa.setIcon(":/icons/lightbulb.png"); wa.setIcon(":/icons/lightbulb.png");
wa.setShortcut(QKeySequence(Qt::SHIFT + Qt::Key_F7));
registerContextAction(wa); registerContextAction(wa);
} }
{ {