refs #318 Add method in Application Context to process a remote event

This commit is contained in:
Roland Winklmeier
2014-08-20 01:31:20 +02:00
parent bdd7de1459
commit f72ff4e495
5 changed files with 29 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include "context_application_impl.h"
#include "context_runtime.h"
#include "input_manager.h"
#include "blackmisc/settingutilities.h"
#include <QtMsgHandler>
#include <QFile>
@@ -106,4 +107,10 @@ namespace BlackCore
return QFile::exists(fileName);
}
void CContextApplication::processHotkeyFuncEvent(const BlackMisc::Event::CEventHotkeyFunction &event)
{
CInputManager::getInstance()->callFunctionsBy(event.getFunction(), event.getFunctionArgument());
qDebug() << "Calling function from origin" << event.getEventOriginator().toQString();
}
} // namespace