| 247 | |
| 248 | |
| 249 | void DebugModulesItemDelegate::updateFonts() |
| 250 | { |
| 251 | // Get font and compute character sizes |
| 252 | m_font = getMonospaceFont(dynamic_cast<QWidget*>(parent())); |
| 253 | m_font.setKerning(false); |
| 254 | m_baseline = (int)QFontMetricsF(m_font).ascent(); |
| 255 | m_charWidth = getFontWidthAndAdjustSpacing(m_font); |
| 256 | m_charHeight = (int)(QFontMetricsF(m_font).height() + getExtraFontSpacing()); |
| 257 | m_charOffset = getFontVerticalOffset(); |
| 258 | } |
| 259 | |
| 260 | |
| 261 | QSize DebugModulesItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const |