]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Replace removed progress bar option orientation with state flag
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 23 Nov 2022 16:52:47 +0000 (17:52 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 26 Apr 2024 07:05:12 +0000 (09:05 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/folderstatusdelegate.cpp

index ed16ae53f0174d289ffe4991f4d91ed1f09129bd..1ffa445b90ef2a6125174278c5dfb68f0e523109 100644 (file)
@@ -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);