debug logs added to for shortcut events

This commit is contained in:
John Preston 2016-03-02 22:50:58 +02:00
parent b277f5cdb7
commit d5132a899e
2 changed files with 3 additions and 1 deletions

View File

@ -322,7 +322,7 @@ void Application::startApplication() {
void Application::closeApplication() {
if (App::launchState() != App::QuitProcessed);
App::setLaunchState(App::QuitProcessed);
App::quit();
delete AppObject;
AppObject = 0;

View File

@ -1037,9 +1037,11 @@ bool Window::eventFilter(QObject *obj, QEvent *e) {
break;
case QEvent::ShortcutOverride: // handle shortcuts ourselves
DEBUG_LOG(("Shortcut override declined: %1").arg(static_cast<QKeyEvent*>(e)->key()));
return true;
case QEvent::Shortcut:
DEBUG_LOG(("Shortcut event catched: %1").arg(static_cast<QShortcutEvent*>(e)->key().toString()));
if (Shortcuts::launch(static_cast<QShortcutEvent*>(e)->shortcutId())) {
return true;
}