Skip to content

Commit 16f3282

Browse files
Gustrym-kuhn
authored andcommitted
backport fix vertical alignment in attribute table references #12700 funded by Kartoza
1 parent 7786cab commit 16f3282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
567567
if ( role == Qt::TextAlignmentRole )
568568
{
569569
if ( fldRightAlign )
570-
return QVariant( Qt::AlignRight );
570+
return QVariant( Qt::AlignRight | Qt::AlignVCenter );
571571
else
572-
return QVariant( Qt::AlignLeft );
572+
return QVariant( Qt::AlignLeft | Qt::AlignVCenter );
573573
}
574574

575575
QVariant val;

0 commit comments

Comments
 (0)