diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-10-05 18:05:58 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-15 12:59:20 +0300 |
commit | 60011e800390e6282d050df7f9ac9ce80b2cf6b9 (patch) | |
tree | 1d9e7033682a4df4d85f3a49a6f53a36c92d86b4 /src/gui/folderstatusdelegate.cpp | |
parent | 93152761a1c92a3e9b93bf8e8874a68497439ee2 (diff) |
Remove vfs warning in the delegate, indicate them in the description instead
Fixes: #8139
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r-- | src/gui/folderstatusdelegate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index 16d927f59..9d0b686f9 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -166,8 +166,8 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & auto itemString = qvariant_cast<QString>(index.data(SyncProgressItemString)); auto warningCount = qvariant_cast<int>(index.data(WarningCount)); auto syncOngoing = qvariant_cast<bool>(index.data(SyncRunning)); - auto syncDate = qvariant_cast<QDateTime>(index.data(SyncDate)); auto syncEnabled = qvariant_cast<bool>(index.data(FolderAccountConnected)); + auto syncText = qvariant_cast<QString>(index.data(FolderSyncText)); auto iconRect = option.rect; auto aliasRect = option.rect; @@ -251,7 +251,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & if (!showProgess) { painter->setFont(subFont); QString elidedRemotePathText = subFm.elidedText( - tr("Synchronized with local folder (%1)").arg(syncDate.toTimeSpec(Qt::LocalTime).toString(Qt::SystemLocaleShortDate)), + syncText, Qt::ElideRight, remotePathRect.width()); painter->drawText(QStyle::visualRect(option.direction, option.rect, remotePathRect), textAlign, elidedRemotePathText); |