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

Method updateFonts

ui/attachprocess.cpp:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182void ProcessItemDelegate::updateFonts()
183{
184 m_font = getMonospaceFont(dynamic_cast<QWidget*>(parent()));
185 m_font.setKerning(false);
186 m_baseline = (int)QFontMetricsF(m_font).ascent();
187 m_charWidth = getFontWidthAndAdjustSpacing(m_font);
188 m_charHeight = (int)(QFontMetricsF(m_font).height() + getExtraFontSpacing());
189 m_charOffset = getFontVerticalOffset();
190}
191
192
193QSize ProcessItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected