Showing the changes to interface/src/Menu.cpp (1 of 6 files). Show all
Unified · Split
| @@ -247,6 +247,12 @@ Menu::Menu() : · 246 unmodified lines | ||
| 247 | 247 | _chatWindow = new ChatWindow(Application::getInstance()->getWindow()); |
| 248 | 248 | #endif |
| 249 | 249 | |
| 250 | + addActionToQMenuAndActionHash(toolsMenu, | |
| 251 | + MenuOption::ToolWindow, | |
| 252 | + Qt::CTRL | Qt::ALT | Qt::Key_T, | |
| 253 | + this, | |
| 254 | + SLOT(toggleToolWindow())); | |
| 255 | + | |
| 250 | 256 | addActionToQMenuAndActionHash(toolsMenu, |
| 251 | 257 | MenuOption::Console, |
| 252 | 258 | Qt::CTRL | Qt::ALT | Qt::Key_J, |
| @@ -1461,6 +1467,11 @@ void Menu::toggleConsole() { · 1208 unmodified lines | ||
| 1461 | 1467 | _jsConsole->setVisible(!_jsConsole->isVisible()); |
| 1462 | 1468 | } |
| 1463 | 1469 | |
| 1470 | +void Menu::toggleToolWindow() { | |
| 1471 | + QMainWindow* toolWindow = Application::getInstance()->getToolWindow(); | |
| 1472 | + toolWindow->setVisible(!toolWindow->isVisible()); | |
| 1473 | +} | |
| 1474 | + | |
| 1464 | 1475 | void Menu::audioMuteToggled() { |
| 1465 | 1476 | QAction *muteAction = _actionHash.value(MenuOption::MuteAudio); |
| 1466 | 1477 | if (muteAction) { |