From 1e953f0f71752bcc8fed0d1eff06b2d5b1de0873 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Wed, 7 Feb 2024 22:01:00 +0100 Subject: [PATCH] Show details of the syncing progress in the settings dialog. Before it was only shown in the tooltip. Signed-off-by: Camila Ayres --- src/gui/folderstatusdelegate.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index b356a3dd32b83..7957b55a0fd23 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -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(); }