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

Method slotViewChanged

App/Client/FrmActive.cpp:228–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void 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
243void CFrmActive::slotAddToFavorite()
244{

Callers 2

StartMethod · 0.80
foreachFunction · 0.80

Calls 1

rowCountMethod · 0.45

Tested by

no test coverage detected