QDebug operator<<(QDebug dbg, const KChart::TextAttributes& ta) { dbg << "KChart::TextAttributes(" << "visible=" << ta.isVisible() << "font=" << ta.font().toString() /* What? No QDebug for QFont? */ << "fontsize=" << ta.fontSize() << "minimalfontsize=" << ta.minimalFontSize() << "autorotate=" << ta.autoRotate() << "autoshrink=" << ta.autoShrink() << "rotation=" << ta.rotation() << "pen=" << ta.pen() << ")"; return dbg; }
void Legend::setFontSize(qreal size) { d->font.setPointSizeF(size); // KChart KChart::TextAttributes attributes = d->kdLegend->textAttributes(); KChart::Measure m = attributes.fontSize(); m.setValue(size); attributes.setFontSize(m); d->kdLegend->setTextAttributes(attributes); d->pixmapRepaintRequested = true; emit updateConfigWidget(); }