mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-29 03:38:05 -06:00
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:
@@ -71,6 +71,7 @@ TrackerListWidget::TrackerListWidget(PropertiesWidget *properties)
|
||||
setItemsExpandable(false);
|
||||
setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
header()->setStretchLastSection(false); // Must be set after loadSettings() in order to work
|
||||
header()->setTextElideMode(Qt::ElideRight);
|
||||
// Ensure that at least one column is visible at all times
|
||||
if (visibleColumnsCount() == 0)
|
||||
setColumnHidden(COL_URL, false);
|
||||
|
||||
Reference in New Issue
Block a user