remove QFontMetrics deprecated code

pull/11/head
Michail Vourlakos 5 years ago
parent 66e8e31701
commit 0853d78101

@ -63,7 +63,7 @@ void LayoutNameDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op
//! font metrics //! font metrics
QFontMetrics fm(option.font); QFontMetrics fm(option.font);
int textWidth = fm.width(nameText); int textWidth = fm.boundingRect(nameText).width();
int thick = option.rect.height(); int thick = option.rect.height();
int length = showTwoIcons ? (2 * thick + 2) : thick; int length = showTwoIcons ? (2 * thick + 2) : thick;

Loading…
Cancel
Save