| 226 | } |
| 227 | |
| 228 | void CFrmActive::slotViewChanged(const QWidget *pView) |
| 229 | { |
| 230 | int nIndex = -1; |
| 231 | if(m_Operates.size() != m_pModel->rowCount()) |
| 232 | slotLoad(); |
| 233 | foreach (auto c, m_Operates) { |
| 234 | nIndex++; |
| 235 | if(c->GetViewer() == pView) |
| 236 | break; |
| 237 | } |
| 238 | if(-1 >= nIndex) |
| 239 | return; |
| 240 | m_pTableView->selectRow(nIndex); |
| 241 | } |
| 242 | |
| 243 | void CFrmActive::slotAddToFavorite() |
| 244 | { |