Elide text from the right for all columns' header

Minimizing columns no longer truncates text from the left, now elides
text from the right for better readability. Done by setting header's
textElideMode to Qt::TextElideRight.

Fix issue #14419.
PR #15366.
This commit is contained in:
smigii 2021-09-07 22:47:55 -05:00 committed by GitHub
parent 7a6edcdddb
commit 8f02fe0cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 0 deletions

View file

@ -158,6 +158,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *mainWindow)
setAttribute(Qt::WA_MacShowFocusRect, false);
#endif
header()->setStretchLastSection(false);
header()->setTextElideMode(Qt::ElideRight);
// Default hidden columns
if (!columnLoaded)