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

Method TextLayoutItem

src/KDChart/KDChartLayoutItems.cpp:188–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188KDChart::TextLayoutItem::TextLayoutItem(const QString &text,
189 const KDChart::TextAttributes &attributes,
190 const QObject *area,
191 KDChartEnums::MeasureOrientation orientation,
192 Qt::Alignment alignment)
193 : AbstractLayoutItem(alignment)
194 , mText(text)
195 , mTextAlignment(alignment)
196 , mAttributes(attributes)
197 , mAutoReferenceArea(area)
198 , mAutoReferenceOrientation(orientation)
199 , cachedSizeHint() // default this to invalid to force just-in-time calculation before first use of sizeHint()
200 , cachedFontSize(0.0)
201 , cachedFont(mAttributes.font())
202{
203}
204
205KDChart::TextLayoutItem::TextLayoutItem()
206 : AbstractLayoutItem(Qt::AlignLeft)

Callers

nothing calls this directly

Calls 1

fontMethod · 0.80

Tested by

no test coverage detected