|
|
|
@ -74,6 +74,7 @@ public:
@@ -74,6 +74,7 @@ public:
|
|
|
|
|
QItemDelegate::drawDisplay(painter, opt, option.rect, misc::friendlyUnit(index.data().toLongLong())); |
|
|
|
|
break; |
|
|
|
|
case PROGRESS:{ |
|
|
|
|
if (index.data().toDouble() >= 0) { |
|
|
|
|
QStyleOptionProgressBarV2 newopt; |
|
|
|
|
qreal progress = index.data().toDouble()*100.; |
|
|
|
|
newopt.rect = opt.rect; |
|
|
|
@ -94,6 +95,10 @@ public:
@@ -94,6 +95,10 @@ public:
|
|
|
|
|
QPlastiqueStyle st; |
|
|
|
|
st.drawControl(QStyle::CE_ProgressBar, &newopt, painter, 0); |
|
|
|
|
#endif |
|
|
|
|
} else { |
|
|
|
|
// Do not display anything if the file is disabled (progress == -1)
|
|
|
|
|
QItemDelegate::drawBackground(painter, opt, index); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case PRIORITY: { |
|
|
|
|