From 1e06d60f8ed97efb7bee99a3ef67397d1266482f Mon Sep 17 00:00:00 2001 From: gentoo90 Date: Tue, 30 May 2023 18:41:11 +0300 Subject: [PATCH] Fix vertical text alignment in the tree views --- lib/db_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db_base.cpp b/lib/db_base.cpp index 16e9ea62..24c93290 100644 --- a/lib/db_base.cpp +++ b/lib/db_base.cpp @@ -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: