MCPcopy Create free account
hub / github.com/Vector35/debugger / updateFonts

Method updateFonts

ui/stackwidget.cpp:350–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349
350void DebugStackItemDelegate::updateFonts()
351{
352 // Get font and compute character sizes
353 m_font = getMonospaceFont(dynamic_cast<QWidget*>(parent()));
354 m_font.setKerning(false);
355 m_baseline = (int)QFontMetricsF(m_font).ascent();
356 m_charWidth = getFontWidthAndAdjustSpacing(m_font);
357 m_charHeight = (int)(QFontMetricsF(m_font).height() + getExtraFontSpacing());
358 m_charOffset = getFontVerticalOffset();
359}
360
361
362QSize DebugStackItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const

Callers 1

notifyFontChangedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected