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

Method GetStartAction

App/Client/mainwindow.cpp:1468–1480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466}
1467
1468QAction* MainWindow::GetStartAction(QMenu* pMenu, CPlugin *pPlug)
1469{
1470 QString szTitle;
1471 if(!pPlug->Protocol().isEmpty())
1472 szTitle = pPlug->Protocol() + ": ";
1473 szTitle += pPlug->DisplayName();
1474 QAction* p = pMenu->addAction(szTitle);
1475 p->setToolTip(pPlug->Description());
1476 p->setStatusTip(pPlug->Description());
1477 p->setData(pPlug->Id());
1478 p->setIcon(pPlug->Icon());
1479 return p;
1480}
1481
1482void MainWindow::slotStartByType()
1483{

Callers 1

onProcessMethod · 0.80

Calls 7

isEmptyMethod · 0.45
ProtocolMethod · 0.45
DisplayNameMethod · 0.45
DescriptionMethod · 0.45
setDataMethod · 0.45
IdMethod · 0.45
IconMethod · 0.45

Tested by

no test coverage detected