Skip to content

Commit

Permalink
Show details of the syncing progress in the settings dialog.
Browse files Browse the repository at this point in the history
Before it was only shown in the tooltip.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Jun 17, 2024
1 parent b1269d4 commit 556d21c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/gui/folderstatusdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,17 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
painter->setFont(progressFont);

painter->drawText(QStyle::visualRect(option.direction, option.rect, overallProgressRect), Qt::AlignLeft | Qt::AlignVCenter, overallString);

// More detailed sync progress
QRect itemStringRect;
itemStringRect.setTop(overallProgressRect.bottom());
itemStringRect.setHeight(fileNameTextHeight);
itemStringRect.setLeft(overallProgressRect.left());
itemStringRect.setWidth(overallProgressRect.width());
painter->setFont(progressFont);

painter->drawText(QStyle::visualRect(option.direction, option.rect, itemStringRect), Qt::AlignLeft | Qt::AlignVCenter, itemString);

painter->restore();
}

Expand Down

0 comments on commit 556d21c

Please sign in to comment.