diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index ed16ae53f0..1ffa445b90 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -312,7 +312,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & progressBarOpt.minimum = 0; progressBarOpt.maximum = 100; progressBarOpt.progress = overallPercent; - progressBarOpt.orientation = Qt::Horizontal; + progressBarOpt.state = QStyle::StateFlag::State_Horizontal; progressBarOpt.rect = QStyle::visualRect(option.direction, option.rect, progressBarRect); #ifdef Q_OS_MACOS backupStyle->drawControl(QStyle::CE_ProgressBar, &progressBarOpt, painter, option.widget); @@ -320,7 +320,6 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & QApplication::style()->drawControl(QStyle::CE_ProgressBar, &progressBarOpt, painter, option.widget); #endif - // Overall Progress Text QRect overallProgressRect; overallProgressRect.setTop(progressBarRect.bottom() + margin);