1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-27 06:54:20 +00:00

Code optimization

This commit is contained in:
Christophe Dumez 2010-03-18 23:25:10 +00:00
parent 52b3926f92
commit 263eb3c632

View File

@ -113,7 +113,7 @@ protected:
QColor getPieceColor(int avail, double average) {
if(!avail) return Qt::white;
//qDebug("avail: %d/%d", avail, max_avail);
QColor color = Qt::blue; // average avail
const QColor color = Qt::blue; // average avail
double fraction = 100.*average/avail;
if(fraction < 100)
fraction *= 0.9;