MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / mapAlignment

Function mapAlignment

source/objects/TextBoxObject.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94// ---------------------------------------------------------------------------
95
96static Qt::Alignment mapAlignment(TextAlignment a)
97{
98 switch (a) {
99 case TextAlignment::Center: return Qt::AlignHCenter;
100 case TextAlignment::Right: return Qt::AlignRight;
101 default: return Qt::AlignLeft;
102 }
103}
104
105void TextBoxObject::render(QPainter& painter, qreal zoom) const
106{

Callers 1

renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected