Fix missing percentage signs. Closes #1392.

This commit is contained in:
sledgehammer999 2014-02-06 00:49:17 +02:00
parent 72ae2cb503
commit 33b0a2b55f
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ class PreviewListDelegate: public QItemDelegate {
QStyleOptionProgressBarV2 newopt;
qreal progress = index.data().toDouble()*100.;
newopt.rect = opt.rect;
newopt.text = misc::accurateDoubleToString(progress, 1);
newopt.text = misc::accurateDoubleToString(progress, 1) + "%";
newopt.progress = (int)progress;
newopt.maximum = 100;
newopt.minimum = 0;

View file

@ -78,7 +78,7 @@ public:
QStyleOptionProgressBarV2 newopt;
qreal progress = index.data().toDouble()*100.;
newopt.rect = opt.rect;
newopt.text = misc::accurateDoubleToString(progress, 1);
newopt.text = misc::accurateDoubleToString(progress, 1) + "%";
newopt.progress = (int)progress;
newopt.maximum = 100;
newopt.minimum = 0;

View file

@ -175,7 +175,7 @@ public:
QStyleOptionProgressBarV2 newopt;
qreal progress = index.data().toDouble()*100.;
newopt.rect = opt.rect;
newopt.text = misc::accurateDoubleToString(progress, 1);
newopt.text = misc::accurateDoubleToString(progress, 1) + "%";
newopt.progress = (int)progress;
newopt.maximum = 100;
newopt.minimum = 0;