void QGraphicsWidgetPrivate::resolveFont(uint inheritedMask) { inheritedFontResolveMask = inheritedMask; QFont naturalFont = naturalWidgetFont(); QFont resolvedFont = font.resolve(naturalFont); updateFont(resolvedFont); }
void QGraphicsWidgetPrivate::resolveFont(uint inheritedMask) { Q_Q(QGraphicsWidget); inheritedFontResolveMask = inheritedMask; if (QGraphicsWidget *p = q->parentWidget()) inheritedFontResolveMask |= p->d_func()->inheritedFontResolveMask; QFont naturalFont = naturalWidgetFont(); QFont resolvedFont = font.resolve(naturalFont); updateFont(resolvedFont); }