Skip to content

Commit 7b086cf

Browse files
committed
Fix alignment of quota with rtl languages
Fixes: #10766
1 parent a7d32df commit 7b086cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gui/folderstatusdelegate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
200200
if (totalQuota > 0) {
201201
const auto usedQuota = index.siblingAtColumn(static_cast<int>(FolderStatusModel::Columns::QuotaUsed)).data().value<int64_t>();
202202
painter->setFont(_font);
203-
painter->drawText(QStyle::visualRect(option.direction, option.rect, quotaTextRect.toRect()),
203+
painter->drawText(QStyle::visualRect(option.direction, option.rect, quotaTextRect.toRect()), Qt::AlignLeft | Qt::AlignVCenter,
204204
subFm.elidedText(
205205
tr("%1 of %2 in use").arg(Utility::octetsToString(usedQuota), Utility::octetsToString(totalQuota)), Qt::ElideRight, quotaTextRect.width()));
206206
}

0 commit comments

Comments
 (0)