| 361 | |
| 362 | |
| 363 | void ThreadFramesItemDelegate::updateFonts() |
| 364 | { |
| 365 | // Get font and compute character sizes |
| 366 | m_font = getMonospaceFont(dynamic_cast<QWidget*>(parent())); |
| 367 | m_font.setKerning(false); |
| 368 | m_baseline = (int)QFontMetricsF(m_font).ascent(); |
| 369 | m_charWidth = getFontWidthAndAdjustSpacing(m_font); |
| 370 | m_charHeight = (int)(QFontMetricsF(m_font).height() + getExtraFontSpacing()); |
| 371 | m_charOffset = getFontVerticalOffset(); |
| 372 | } |
| 373 | |
| 374 | |
| 375 | QSize ThreadFramesItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const |