Added shortcuts to the Execute, Explain and Explain Analyze context actions.
This commit is contained in:
parent
db735363f7
commit
eca8841427
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue