Skip to content
Permalink
Browse files

Merge pull request #4254 from Gustry/vertical_alignment

make the attribute table vertical aligned
  • Loading branch information
nyalldawson committed Mar 14, 2017
2 parents 647e814 + ac912cc commit a66ef0c08d68dabe60dd7696f79841df3a143f47
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -620,7 +620,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons

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

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

0 comments on commit a66ef0c

Please sign in to comment.
You can’t perform that action at this time.