mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -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:
@@ -90,6 +90,8 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent)
|
||||
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
header()->setStretchLastSection(false);
|
||||
header()->setTextElideMode(Qt::ElideRight);
|
||||
|
||||
// List Model
|
||||
m_listModel = new QStandardItemModel(0, PeerListColumns::COL_COUNT, this);
|
||||
m_listModel->setHeaderData(PeerListColumns::COUNTRY, Qt::Horizontal, tr("Country/Region")); // Country flag column
|
||||
|
||||
Reference in New Issue
Block a user