Skip to content

Commit a66ef0c

Browse files
authored
Merge pull request #4254 from Gustry/vertical_alignment
make the attribute table vertical aligned
2 parents 647e814 + ac912cc commit a66ef0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/attributetable/qgsattributetablemodel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
620620

621621
if ( role == Qt::TextAlignmentRole )
622622
{
623-
return mFieldFormatters.at( index.column() )->alignmentFlag( layer(), fieldId, mWidgetConfigs.at( index.column() ) );
623+
return QVariant( mFieldFormatters.at( index.column() )->alignmentFlag( layer(), fieldId, mWidgetConfigs.at( index.column() ) ) | Qt::AlignVCenter );
624624
}
625625

626626
if ( mFeat.id() != rowId || !mFeat.isValid() )

0 commit comments

Comments
 (0)