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

Method paint

src/KDChart/KDChartLayoutItems.cpp:171–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void KDChart::TextBubbleLayoutItem::paint(QPainter *painter)
172{
173 const QPen oldPen = painter->pen();
174 const QBrush oldBrush = painter->brush();
175 painter->setPen(Qt::black);
176 painter->setBrush(QColor(255, 255, 220));
177 painter->drawRoundedRect(geometry(), 10, 25, Qt::RelativeSize);
178 painter->setPen(oldPen);
179 painter->setBrush(oldBrush);
180 m_text->paint(painter);
181}
182
183int KDChart::TextBubbleLayoutItem::borderWidth() const
184{

Callers

nothing calls this directly

Calls 15

QRectFClass · 0.85
autoShrinkMethod · 0.80
centerMethod · 0.80
textDocumentMethod · 0.80
sizeMethod · 0.80
drawLineMethod · 0.80
heightMethod · 0.80
spacingMethod · 0.80
fitFontSizeToGeometryFunction · 0.50
penMethod · 0.45
brushMethod · 0.45
setPenMethod · 0.45

Tested by

no test coverage detected