| 26 | } |
| 27 | |
| 28 | void CoreReceiver::eventProcess(const dpf::Event &event) |
| 29 | { |
| 30 | if(event.data() == uiController.doSwitch.name) { |
| 31 | QString actionTextKey = uiController.doSwitch.pKeys[0]; |
| 32 | QString actionText = event.property(actionTextKey).toString(); |
| 33 | QMetaObject::invokeMethod(this, [=](){ |
| 34 | Controller::instance()->switchWidgetNavigation(actionText); |
| 35 | } , Qt::QueuedConnection); |
| 36 | } else if(event.data() == uiController.switchContext.name) { |
| 37 | QString titleName = event.property(uiController.switchContext.pKeys[0]).toString(); |
| 38 | QMetaObject::invokeMethod(this, [=](){ |
| 39 | Controller::instance()->switchContextWidget(titleName); |
| 40 | } , Qt::QueuedConnection); |
| 41 | } else if(event.data() == uiController.switchWorkspace.name) { |
| 42 | QString titleName = event.property(uiController.switchWorkspace.pKeys[0]).toString(); |
| 43 | Controller::instance()->switchWorkspace(titleName); |
| 44 | } |
| 45 | } |
nothing calls this directly
no test coverage detected