Replaced use of QFontMetrics::boundingRect with height() and ascent()