MCPcopy Create free account
hub / github.com/YACReader/yacreader / drawTextEffect

Method drawTextEffect

custom_widgets/yacreader_titled_toolbar.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 alignment(), text());
27}
28void DropShadowLabel::drawTextEffect(QPainter *painter,
29 QPoint offset)
30{
31 Q_ASSERT(painter != 0);
32
33 // Draw shadow.
34 painter->setPen(QPen(dropShadowColor));
35 painter->drawText(rect().translated(offset),
36 alignment(), text());
37}
38
39void DropShadowLabel::paintEvent(QPaintEvent *event)
40{

Callers

nothing calls this directly

Calls 1

drawTextMethod · 0.80

Tested by

no test coverage detected