Browse Source

Fix missing percentage signs. Closes #1392.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
33b0a2b55f
  1. 2
      src/previewlistdelegate.h
  2. 2
      src/properties/proplistdelegate.h
  3. 2
      src/transferlistdelegate.h

2
src/previewlistdelegate.h

@ -65,7 +65,7 @@ class PreviewListDelegate: public QItemDelegate { @@ -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;

2
src/properties/proplistdelegate.h

@ -78,7 +78,7 @@ public: @@ -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;

2
src/transferlistdelegate.h

@ -175,7 +175,7 @@ public: @@ -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;

Loading…
Cancel
Save