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

Method maybeUpdateRealFont

src/KDChart/KDChartLayoutItems.cpp:356–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356bool KDChart::TextLayoutItem::maybeUpdateRealFont() const
357{
358 const qreal fntSiz = realFontSize();
359 const bool doUpdate = !cachedSizeHint.isValid() || cachedFontSize != fntSiz;
360
361 if (doUpdate && fntSiz > 0.0) {
362 cachedFontSize = fntSiz;
363 cachedFont.setPointSizeF(fntSiz);
364 }
365 return doUpdate; // "didUpdate" by now
366}
367
368QFont KDChart::TextLayoutItem::realFont() const
369{

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected