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

Method SetDecorationColor

Modules/QtWidgets/src/QmitkRenderWindowWidget.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void QmitkRenderWindowWidget::SetDecorationColor(const mitk::Color& color)
125{
126 m_DecorationColor = color;
127 m_CornerAnnotation->GetTextProperty()->SetColor(m_DecorationColor[0], m_DecorationColor[1], m_DecorationColor[2]);
128
129 QColor hexColor(m_DecorationColor[0] * 255, m_DecorationColor[1] * 255, m_DecorationColor[2] * 255);
130 setStyleSheet("QmitkRenderWindowWidget { border: 2px solid " + hexColor.name(QColor::HexRgb) + "; }");
131}
132
133void QmitkRenderWindowWidget::ShowColoredRectangle(bool show)
134{

Callers

nothing calls this directly

Calls 2

SetColorMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected