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

Method boundingRect

Modules/QtWidgetsExt/src/QmitkHistogram.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93QRectF QmitkHistogram::boundingRect() const
94{
95 QRectF rect = m_Data->data.boundingRect();
96 if (!rect.isValid())
97 return rect;
98
99 if (rect.bottom() < m_Data->reference)
100 rect.setBottom(m_Data->reference);
101 else if (rect.top() > m_Data->reference)
102 rect.setTop(m_Data->reference);
103
104 return rect;
105}
106
107void QmitkHistogram::draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const
108{

Callers 2

paintEventMethod · 0.80
paintEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected