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 Apr 24, 2024
1 parent 8d43b00 commit 1e953f0
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 1e953f0

Please sign in to comment.