MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / eventProcess

Method eventProcess

src/plugins/core/transceiver/corereceiver.cpp:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void 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}

Callers

nothing calls this directly

Calls 6

switchContextWidgetMethod · 0.80
switchWorkspaceMethod · 0.80
dataMethod · 0.45
toStringMethod · 0.45
propertyMethod · 0.45

Tested by

no test coverage detected