mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-11 04:42:22 +00:00
Vertical align right-aligned header text
Since e907306b411 ("Right align header text that also has right-aligned row text"), right-aligned elements are no longer centered vertically. This can be noticed with some Qt styles (e.g. Breeze).
This commit is contained in:
parent
f5048a4586
commit
d19b7a777f
@ -402,7 +402,7 @@ QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
|
|||||||
case TorrentModelItem::TR_RATIO:
|
case TorrentModelItem::TR_RATIO:
|
||||||
case TorrentModelItem::TR_PRIORITY:
|
case TorrentModelItem::TR_PRIORITY:
|
||||||
case TorrentModelItem::TR_LAST_ACTIVITY:
|
case TorrentModelItem::TR_LAST_ACTIVITY:
|
||||||
return Qt::AlignRight;
|
return QVariant(Qt::AlignRight | Qt::AlignVCenter);
|
||||||
default:
|
default:
|
||||||
return QAbstractListModel::headerData(section, orientation, role);
|
return QAbstractListModel::headerData(section, orientation, role);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user