|
|
|
@ -33,7 +33,7 @@
@@ -33,7 +33,7 @@
|
|
|
|
|
#include <QPainter> |
|
|
|
|
#include <QStyleOptionViewItem> |
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
|
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS) |
|
|
|
|
#include <QProxyStyle> |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -166,7 +166,7 @@ void TransferListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
@@ -166,7 +166,7 @@ void TransferListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
|
|
|
|
newopt.minimum = 0; |
|
|
|
|
newopt.state |= QStyle::State_Enabled; |
|
|
|
|
newopt.textVisible = true; |
|
|
|
|
#ifndef Q_OS_WIN |
|
|
|
|
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) |
|
|
|
|
QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, painter); |
|
|
|
|
#else |
|
|
|
|
// XXX: To avoid having the progress text on the right of the bar
|
|
|
|
|