mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Performance improvement on ARM
This commit is contained in:
parent
5c8dd9f0fb
commit
8238c13dc0
5 changed files with 15 additions and 15 deletions
|
@ -154,7 +154,7 @@ public:
|
|||
case TorrentModelItem::TR_RATIO:{
|
||||
QItemDelegate::drawBackground(painter, opt, index);
|
||||
opt.displayAlignment = Qt::AlignRight;
|
||||
const double ratio = index.data().toDouble();
|
||||
const qreal ratio = index.data().toDouble();
|
||||
if(ratio > 100.)
|
||||
QItemDelegate::drawDisplay(painter, opt, opt.rect, QString::fromUtf8("∞"));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue