Skip to content

Commit

Permalink
Use Qt::ElideRight.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan authored and mgallien committed Jan 2, 2025
1 parent 4a8f3ec commit 932a223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/folderstatusdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
subFm.height());

for (const auto &eText : texts) {
painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign, subFm.elidedText(eText, Qt::ElideLeft, textRect.width()));
painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign, subFm.elidedText(eText, Qt::ElideRight, textRect.width()));
textRect.translate(0, textRect.height());
}
// restore previous state
Expand Down

0 comments on commit 932a223

Please sign in to comment.