|
@@ -343,6 +343,11 @@
|
343
|
343
|
}
|
344
|
344
|
displayValue -= change;
|
345
|
345
|
}
|
|
346
|
+ var rowColor = QBrush("black");
|
|
347
|
+ if(displayValue < 0)
|
|
348
|
+ {
|
|
349
|
+ rowColor = QBrush("red");
|
|
350
|
+ }
|
346
|
351
|
var bagCount = (displayValue / bagConversion).toFixed(2);
|
347
|
352
|
switch(unitBox.currentIndex)
|
348
|
353
|
{
|
|
@@ -362,6 +367,9 @@
|
362
|
367
|
table.setData(r, 2, displayValue, 0);
|
363
|
368
|
table.setData(r, 2, displayValue, 2);
|
364
|
369
|
table.resizeColumnToContents(2);
|
|
370
|
+ table.setData(r, 0, rowColor, 9);
|
|
371
|
+ table.setData(r, 1, rowColor, 9);
|
|
372
|
+ table.setData(r, 2, rowColor, 9);
|
365
|
373
|
}
|
366
|
374
|
}
|
367
|
375
|
}
|