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

Method boundingRect

src/openms_gui/source/VISUAL/TOPPASEdge.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 QRectF TOPPASEdge::boundingRect() const
105 {
106 qreal min_x = startPos().x() < endPos().x() ? startPos().x() : endPos().x();
107 qreal min_y = startPos().y() < endPos().y() ? startPos().y() : endPos().y();
108 qreal max_x = startPos().x() > endPos().x() ? startPos().x() : endPos().x();
109 qreal max_y = startPos().y() > endPos().y() ? startPos().y() : endPos().y();
110
111 return QRectF(QPointF(min_x - 11.0, min_y - 11.0), QPointF(max_x + 11.0, max_y + 11.0));
112 }
113
114 QPainterPath TOPPASEdge::shape() const
115 {

Callers 9

foreachFunction · 0.45
borderPoint_Method · 0.45
zoomMethod · 0.45
paintMethod · 0.45
drawLineWithArrowsMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
showAsWindow_Method · 0.45
drawMethod · 0.45

Calls 1

QRectFClass · 0.50

Tested by

no test coverage detected