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

Method InsertItem

App/Client/Recent/FrmRecent.cpp:260–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260int CFrmRecent::InsertItem(COperate *c, QString& szFile)
261{
262 CRecentDatabase::RecentItem item;
263 item.icon = c->Icon();
264 item.szName = c->Name();
265 item.szProtocol = c->Protocol();
266 item.szType = c->GetTypeName();
267 item.SetFile(szFile);
268 m_pModel->addItem(item);
269
270 m_pTableView->selectRow(0);
271 return 0;
272}
273
274void CFrmRecent::slotStartByType()
275{

Callers

nothing calls this directly

Calls 6

addItemMethod · 0.80
IconMethod · 0.45
NameMethod · 0.45
ProtocolMethod · 0.45
GetTypeNameMethod · 0.45
SetFileMethod · 0.45

Tested by

no test coverage detected