| 287 | } |
| 288 | |
| 289 | int 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 | |
| 309 | void CFrmRecent::slotNew() |
| 310 | { |
nothing calls this directly
no test coverage detected