| 258 | } |
| 259 | |
| 260 | void QmitkColorPropertyEditor::onColorSelected(QColor c) |
| 261 | { |
| 262 | if (m_ColorProperty) |
| 263 | { |
| 264 | int r, g, b; |
| 265 | c.getRgb(&r, &g, &b); |
| 266 | const_cast<mitk::ColorProperty *>(m_ColorProperty)->SetColor(r / 255.0, g / 255.0, b / 255.0); |
| 267 | m_ColorProperty->Modified(); |
| 268 | |
| 269 | mitk::RenderingManager::GetInstance()->RequestUpdateAll(); |
| 270 | } |
| 271 | } |
nothing calls this directly
no test coverage detected