Skip to content
Permalink
Browse files

make the attribute table vertically aligned

  • Loading branch information
Gustry committed Mar 14, 2017
1 parent 5c02c8a commit ac912cc0498166b3ee64f793581d236eb98eab2d
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 ac912cc

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