Skip to content

Commit

Permalink
opt: draw number at the right-bottom position
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 26, 2024
1 parent 6c4951f commit b46362b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/dict/dictionary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit b46362b

Please sign in to comment.