| 258 | } |
| 259 | |
| 260 | int 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 | |
| 274 | void CFrmRecent::slotStartByType() |
| 275 | { |