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

Method onColorSelected

Modules/QtWidgetsExt/src/QmitkColorPropertyEditor.cpp:260–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void 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}

Callers

nothing calls this directly

Calls 3

SetColorMethod · 0.45
ModifiedMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected