mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Fix vertical text alignment in the tree views
This commit is contained in:
parent
8983e5010d
commit
1e06d60f8e
@ -451,7 +451,7 @@ QVariant db_base::data(const QModelIndex &index, int role) const
|
||||
case Qt::DecorationRole:
|
||||
return item->getIcon(hd);
|
||||
case Qt::TextAlignmentRole:
|
||||
return hd->isNumeric() ? Qt::AlignRight : Qt::AlignLeft;
|
||||
return int((hd->isNumeric() ? Qt::AlignRight : Qt::AlignLeft) | Qt::AlignVCenter);
|
||||
case Qt::BackgroundRole:
|
||||
return item->bg_color(hd);
|
||||
case Qt::UserRole:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user