MCPcopy Create free account
hub / github.com/KDAB/KDChart / paintIntoRect

Method paintIntoRect

src/KDChart/KDChartTextArea.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void TextArea::paintIntoRect(QPainter &painter, const QRect &rect)
53{
54 const QRect oldGeometry(geometry());
55 if (oldGeometry != rect)
56 setGeometry(rect);
57 painter.translate(rect.left(), rect.top());
58 paintAll(painter);
59 painter.translate(-rect.left(), -rect.top());
60 if (oldGeometry != rect)
61 setGeometry(oldGeometry);
62}
63
64void TextArea::paintAll(QPainter &painter)
65{

Callers 1

Q_FOREACHFunction · 0.45

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected