From b46362b277a6832cd92b0354025e0dfb33419f8b Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Thu, 26 Dec 2024 13:50:53 +0800 Subject: [PATCH] opt: draw number at the right-bottom position --- src/dict/dictionary.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dict/dictionary.cc b/src/dict/dictionary.cc index 15898c38b..51772923d 100644 --- a/src/dict/dictionary.cc +++ b/src/dict/dictionary.cc @@ -328,7 +328,6 @@ bool Class::loadIconFromText( const QString & iconUrl, QString const & text ) font.setPixelSize( iconSize * 0.4 ); QFontMetrics fm1( font ); const QString & orderNum = abbrName.mid( 1 ); - int orderNumberWidth = fm1.horizontalAdvance( orderNum ); painter.setFont( font ); painter.drawText( rectangle, Qt::AlignRight | Qt::AlignBottom, orderNum );