src/gui/shellwidget/shellwidget.cpp
void ShellWidget::setCellSize()
{
	QFontMetrics fm(font());
	m_ascent = fm.ascent();
	m_cellSize = QSize(fm.width('W'),
			qMax(fm.lineSpacing(), fm.height()) + m_lineSpace);
	setSizeIncrement(m_cellSize);
}
/// Changed the cell size based on font metrics:
/// - Height is either the line spacing or the font
///   height, the leading may be negative and we want the
///   larger value
/// - Width is the width of the "W" character
Changed the cell size based on font metrics:
Height is either the line spacing or the font
height, the leading may be negative and we want the
larger value
Width is the width of the "W" character
Changed the cell size based on font metrics : Height is either the line spacing or the font height the leading may be negative and we want the larger value Width is the width of the " W " character
void ShellWidget::setCellSize()
{
	QFontMetrics fm(font());
	m_ascent = fm.ascent();
	m_cellSize = QSize(fm.width('W'),
			qMax(fm.lineSpacing(), fm.height()) + m_lineSpace);
	setSizeIncrement(m_cellSize);
}
void ShellWidget :: setCellSize ( ) { QFontMetrics fm ( font ( ) ) ; m_ascent = fm . ascent ( ) ; m_cellSize = QSize ( fm . width ( ' ' ) , qMax ( fm . lineSpacing ( ) , fm . height ( ) ) + m_lineSpace ) ; setSizeIncrement ( m_cellSize ) ; }
Changed the cell size based on font metrics:
 Height is either the line spacing or the font
height, the leading may be negative and we want the
larger value
 Width is the width of the "W" character
Changed the cell size based on font metrics : Height is either the line spacing or the font height the leading may be negative and we want the larger value Width is the width of the " W " character