| 122 | } |
| 123 | |
| 124 | void 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 | |
| 133 | void QmitkRenderWindowWidget::ShowColoredRectangle(bool show) |
| 134 | { |