MCPcopy Create free account
hub / github.com/MITK/MITK / ChangeServiceOnList

Method ChangeServiceOnList

Modules/QtWidgets/src/QmitkServiceListWidget.cpp:204–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool QmitkServiceListWidget::ChangeServiceOnList(const us::ServiceReferenceU &serviceRef)
205{
206 for (std::vector<QmitkServiceListWidget::ServiceListLink>::iterator it = m_ListContent.begin();
207 it != m_ListContent.end();
208 ++it)
209 {
210 if (serviceRef == it->service)
211 {
212 it->item->setText(this->CreateCaptionForService(serviceRef));
213 return true;
214 }
215 }
216 return false;
217}
218
219us::ServiceReferenceU QmitkServiceListWidget::GetServiceForListItem(QListWidgetItem *item)
220{

Callers 1

OnServiceEventMethod · 0.95

Calls 4

beginMethod · 0.45
endMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected