mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Replace removed progress bar option orientation with state flag
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
7a17a51a25
commit
aaea45110f
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user