|
|
@ -84,12 +84,7 @@ void PropListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti |
|
|
|
break; |
|
|
|
break; |
|
|
|
case REMAINING: |
|
|
|
case REMAINING: |
|
|
|
QItemDelegate::drawBackground(painter, opt, index); |
|
|
|
QItemDelegate::drawBackground(painter, opt, index); |
|
|
|
if (index.sibling(index.row(), PRIORITY).data().toInt() == prio::IGNORED) { |
|
|
|
|
|
|
|
QItemDelegate::drawDisplay(painter, opt, option.rect, tr("N/A")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
QItemDelegate::drawDisplay(painter, opt, option.rect, Utils::Misc::friendlyUnit(index.data().toLongLong())); |
|
|
|
QItemDelegate::drawDisplay(painter, opt, option.rect, Utils::Misc::friendlyUnit(index.data().toLongLong())); |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case PROGRESS: |
|
|
|
case PROGRESS: |
|
|
|
if (index.data().toDouble() >= 0) { |
|
|
|
if (index.data().toDouble() >= 0) { |
|
|
|