PROTECTED GETTER
| 376 | |
| 377 | //# PROTECTED GETTER |
| 378 | int QmitkPropertiesTableModel::FindProperty(const mitk::BaseProperty *_Property) const |
| 379 | { |
| 380 | int row = -1; |
| 381 | |
| 382 | if (_Property) |
| 383 | { |
| 384 | // search for property that changed and emit datachanged on the corresponding ModelIndex |
| 385 | std::vector<PropertyDataSet>::const_iterator propertyIterator; |
| 386 | |
| 387 | for (propertyIterator = m_SelectedProperties.begin(); propertyIterator != m_SelectedProperties.end(); |
| 388 | propertyIterator++) |
| 389 | { |
| 390 | if (propertyIterator->second == _Property) |
| 391 | break; |
| 392 | } |
| 393 | |
| 394 | if (propertyIterator != m_SelectedProperties.end()) |
| 395 | row = std::distance(m_SelectedProperties.begin(), propertyIterator); |
| 396 | } |
| 397 | |
| 398 | return row; |
| 399 | } |
| 400 | |
| 401 | //# PROTECTED SETTER |
| 402 | void QmitkPropertiesTableModel::AddSelectedProperty(PropertyDataSet &_PropertyDataSet) |
no test coverage detected