| 348 | |
| 349 | |
| 350 | void 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 | |
| 362 | QSize DebugStackItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const |