diff --git a/src/DLListDelegate.h b/src/DLListDelegate.h index b2b928981..871b5bfb5 100644 --- a/src/DLListDelegate.h +++ b/src/DLListDelegate.h @@ -88,9 +88,11 @@ class DLListDelegate: public QItemDelegate { newopt.maximum = 100; newopt.minimum = 0; newopt.state |= QStyle::State_Enabled; - newopt.textVisible = true; + newopt.textVisible = false; QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, painter); + painter->setPen(QColor("Black")); + painter->drawText(opt.rect, Qt::AlignCenter, newopt.text); break; } default: diff --git a/src/FinishedListDelegate.h b/src/FinishedListDelegate.h index 83b0e8cb7..68881ffb4 100644 --- a/src/FinishedListDelegate.h +++ b/src/FinishedListDelegate.h @@ -81,9 +81,11 @@ class FinishedListDelegate: public QItemDelegate { newopt.maximum = 100; newopt.minimum = 0; newopt.state |= QStyle::State_Enabled; - newopt.textVisible = true; + newopt.textVisible = false; QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, painter); + painter->setPen(QColor("Black")); + painter->drawText(opt.rect, Qt::AlignCenter, newopt.text); break; } default: diff --git a/src/GUI.cpp b/src/GUI.cpp index 24e37305b..d0f1537ac 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -158,7 +158,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent) { force_exit = false; // Resume unfinished torrents BTSession->resumeUnfinishedTorrents(); - // Load last columns width for download list + // Load last columns width for download list if(!loadColWidthDLList()) { downloadList->header()->resizeSection(0, 200); } diff --git a/src/PreviewListDelegate.h b/src/PreviewListDelegate.h index 31129f25a..135da7c8b 100644 --- a/src/PreviewListDelegate.h +++ b/src/PreviewListDelegate.h @@ -63,9 +63,10 @@ class PreviewListDelegate: public QItemDelegate { newopt.maximum = 100; newopt.minimum = 0; newopt.state |= QStyle::State_Enabled; - newopt.textVisible = true; - QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, - painter); + newopt.textVisible = false; + QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, painter); + painter->setPen(QColor("Black")); + painter->drawText(opt.rect, Qt::AlignCenter, newopt.text); break; } default: diff --git a/src/PropListDelegate.h b/src/PropListDelegate.h index af9b121df..8268c1602 100644 --- a/src/PropListDelegate.h +++ b/src/PropListDelegate.h @@ -76,9 +76,10 @@ class PropListDelegate: public QItemDelegate { newopt.maximum = 100; newopt.minimum = 0; newopt.state |= QStyle::State_Enabled; - newopt.textVisible = true; - QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, - painter); + newopt.textVisible = false; + QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, painter); + painter->setPen(QColor("Black")); + painter->drawText(opt.rect, Qt::AlignCenter, newopt.text); break; } case PRIORITY:{