Skip to content

Commit ac912cc

Browse files
committedMar 14, 2017
make the attribute table vertically aligned
1 parent 5c02c8a commit ac912cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.