| 202 | } |
| 203 | |
| 204 | bool 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 | |
| 219 | us::ServiceReferenceU QmitkServiceListWidget::GetServiceForListItem(QListWidgetItem *item) |
| 220 | { |
no test coverage detected