FACT++  1.0
void FactGui::handleRemoveService ( const string &  server,
const string &  service,
bool  iscmd 
)
inlineprivate

Definition at line 352 of file FactGui.h.

References i.

Referenced by RemoveService().

353  {
354  QListView *servers = iscmd ? fDimCmdServers : fDimSvcServers;
355 
356  QStandardItemModel *m = dynamic_cast<QStandardItemModel*>(servers->model());
357  if (!m)
358  return;
359 
360  QList<QStandardItem*> l = m->findItems(server.c_str());
361  if (l.size()!=1)
362  return;
363 
364  for (int i=0; i<l[0]->rowCount(); i++)
365  {
366  QStandardItem *row = l[0]->child(i);
367  if (row->text().toStdString()==service)
368  {
369  l[0]->removeRow(row->index().row());
370  return;
371  }
372  }
373  }
int i
Definition: db_dim_client.c:21

+ Here is the caller graph for this function: