1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Merge pull request #2229 from pmzqla/vertical-align

Vertical align right-aligned header text
This commit is contained in:
sledgehammer999 2014-12-02 11:27:51 +02:00
commit d24b67f77b

View File

@ -402,7 +402,7 @@ QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
case TorrentModelItem::TR_RATIO:
case TorrentModelItem::TR_PRIORITY:
case TorrentModelItem::TR_LAST_ACTIVITY:
return Qt::AlignRight;
return QVariant(Qt::AlignRight | Qt::AlignVCenter);
default:
return QAbstractListModel::headerData(section, orientation, role);
}