| 354 | } |
| 355 | |
| 356 | bool 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 | |
| 368 | QFont KDChart::TextLayoutItem::realFont() const |
| 369 | { |