MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / onProcess

Method onProcess

App/Client/Recent/FrmRecent.cpp:289–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289int CFrmRecent::onProcess(const QString &id, CPlugin *pPlugin)
290{
291 // Connect menu and toolbar
292 QMenu* m = m_pMenuNew;
293 if(m_ParameterApp.GetStartByType()) {
294 auto it = m_MenuStartByType.find(pPlugin->Type());
295 if(it == m_MenuStartByType.end()) {
296 m = new QMenu(pPlugin->TypeName(pPlugin->Type()), m_pMenuNew);
297 m_MenuStartByType[pPlugin->Type()] = m;
298 m_pMenuNew->addMenu(m);
299 } else
300 m = *it;
301 }
302 // Start menu and toolbar
303 QAction* p = m_pMainWindow->GetStartAction(m, pPlugin);
304 bool check = connect(p, SIGNAL(triggered()), this, SLOT(slotNew()));
305 Q_ASSERT(check);
306 return 0;
307}
308
309void CFrmRecent::slotNew()
310{

Callers

nothing calls this directly

Calls 4

GetStartByTypeMethod · 0.80
TypeNameMethod · 0.80
GetStartActionMethod · 0.80
TypeMethod · 0.45

Tested by

no test coverage detected