#include <QPainter>
#include <QApplication>
#include <QMouseEvent>
+#include <QCommonStyle>
inline static QFont makeAliasFont(const QFont &normalFont)
{
return aliasFont;
}
+namespace {
+#ifdef Q_OS_MACOS
+ QCommonStyle backupStyle;
+#endif
+}
+
namespace OCC {
FolderStatusDelegate::FolderStatusDelegate()
progressBarOpt.progress = overallPercent;
progressBarOpt.orientation = Qt::Horizontal;
progressBarOpt.rect = QStyle::visualRect(option.direction, option.rect, progressBarRect);
+#ifdef Q_OS_MACOS
+ backupStyle.drawControl(QStyle::CE_ProgressBar, &progressBarOpt, painter, option.widget);
+#else
QApplication::style()->drawControl(QStyle::CE_ProgressBar, &progressBarOpt, painter, option.widget);
+#endif
// Overall Progress Text