Browse Source

Code optimization

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
263eb3c632
  1. 2
      src/pieceavailabilitybar.h

2
src/pieceavailabilitybar.h

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

Loading…
Cancel
Save