mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #318 Add method in Application Context to process a remote event
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user